Entries in /etc/hosts are being ingored.

I added 
209.132.176.175 bugzilla.gnome.org
to /etc/hosts and restarted Xserver, network service and my pppoe connection.
And the entry in /etc/hosts is is being ignored. Any idea how to debug this weird behavior?

Ah, now I see what your problem is :-)
What if you ping bugzilla.gnome.org? Does that reach 209.132.176.175?
-edit-
It seems that Firefox simply doesn't use /etc/hosts at all. Solution (if don't want to wait for your DNS servers to get updated): install dnsmasq, cp /etc/resolv.conf /etc/resolv.conf.2, change nameserver in resolv.conf to 127.0.0.1, change resolv-file to resolv.conf.2 and add bugzilla.gnome.org to address field in dnsmasq.conf and start /etc/rc.d/dnsmasq. You'd have to make sure ppooe doesn't overwrite resolv.conf (it'd have to write to resolv.conf.2). Additional benefit: local caching of DNS queries (=> faster browsing).
Last edited by lucke (2007-10-21 23:23:42)

Similar Messages

  • Entry in /etc/hosts.allow for insecure VNC?

    I read the ssh wiki article which teaches to add an entry to /etc/hosts.allow for sshd.  I am know that tunneling vnc through sshd is the way to go security wise, however, there are cases where I need to switch on un-encrypted vnc for the purposes of sharing my X11 session with family members.  Anyway, my question deals with an entry in the /etc/hosts.allow for gnome's desktop sharing (which is vnc as I understand it).  Does anyone know the syntax to allow vnc for any incoming connection (default port of 5900).
    I have tried:
    vino: ALL
    Xvnc: ALL
    X11vnc: ALL
    None of which worked.
    Thanks!

    when I don't know what's the name of the process listening to specific port, I always execute
    netstat -tnlp
    to get the proper processes' names.

  • Asking for a password when trying to add an entry to /etc/hosts

    I am trying to add an entry to /etc/hosts using Terminal. When I type the command: sudo nano /etc/hosts it asks me for a password. I have never set a password so I have no idea what this would be. My admin pw is blank (I just hit enter) and this is not working. Is there a defaut password or how can I reset this? Thanks

    This would be your admin account password. You must set one.
    Forgot Your Account Password
    For Lion, Mountain Lion, or Mavericks
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see Reset a Mac OS X 10.7 Lion Password, OS X Mountain Lion- Reset a login password,
         and OS X Lion- Apple ID can be used to reset your user account password.
    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself

  • Mac osx 10.7.5 /etc/hosts file being ignored

    Hi guys, i am a web developer and use my macbook pro for work, recently i upgraded my OSX to 10.7.5 and all **** broke loose. i use ubuntu server to on virtual box to host my webserver and now it seems like my hosts file is not being read because i cant ssh into my server anymore.
    i googled around and discovered this was actually intentional by apple( i wonder why?) and have tried several solutions. one of them actually worked last week, where i had to go systempreference/network/advanced and added 127.0.0.1 to the top of the list, copied /etc/resolv.conf to /etc/resolve.dnsmasq.conf and loaded dnsmasq.
    this worked for the last couple of days. today i restarted my macbookpro and im back to the same problem only this time a lot worse cause the past solution does not seem to wrk anymore and all solutions i have found on google dont seem to help anymore
    Please help, i need to do soem work.
    thanks...

    Take each of the following steps that you haven't already tried, until the problem is resolved.
    Step 1
    Restart the router. Many problems are solved that way.
    Step 2
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 3
    Run the Network Diagnostics assistant.
    Step 4
    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 5
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 6
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 7
    Reset the System Management Controller (SMC).

  • SCAN LISTENER runs from only one node at a time from /etc/hosts !

    Dear all ,
    Recently I have to configure RAC in oracle 11g(r2) in AIX 6.1 . Since in this moment it is not possible to configure DNS, so I dont use SCAN ip into the DNS/GNS, I just add the SCAN ip into the host file like :
    cat /etc/hosts
    SCAN 172.17.0.22
    Got the info from : http://www.freeoraclehelp.com/2011/12/scan-setup-for-oracle-11g-release211gr2.html#ORACLE11GR2RACINS
    After configuring all the steps of RAC , Every services are ok except SCAN_LISTENER . This listener is up only one node at a time . First time when I chek it from node1 , it shows :
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr1
    now when I relocate it from node 2 using
    "srvctl relocate scan -i 1-n DCDBSVR2" , then the output shows :
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr2
    Baring these , we have to try to relocate it from the node2 by the following way, then it shows the error :
    srvctl relocate scan -i 2 -n DCDBSVR2
    resource ora.scan2.vip does not exists
    Now my question , How can I run the SCAN and SCAN_LISTENER both of the NODES ?
    Here is my listener file (which is in the GRID home location) configuration :
    Listener File OF NODE1 AND NODE 2:
    ==================================
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON
    LISTENER_SCAN1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC) (KEY = LISTENER_SCAN1)
    ADR_BASE_LISTENER_SCAN1 = /U01/APP/ORACLE
    2)
    Another issue , when I give the command : " ifconfig -a " , then it shows the SCAN ip either node1 or node2 . suppose if the SCAN ip is in the node1 , and then if I run the "relocate" command from node2 , the ip goes to the Node 2 . is it a correct situation ? advice plz ... ...
    thx in advance .. ...
    Edited by: shipon_97 on Jan 10, 2012 7:22 AM
    Edited by: shipon_97 on Jan 10, 2012 7:31 AM

    After configuring all the steps of RAC , Every services are ok except SCAN_LISTENER . This listener is up only one node at a time . First time when I chek it from node1 , it shows :If I am not wrong and after looking at the document you sent, you will be able to use only once scan in case you use /etc/host file and this will be up on only one node where you added this scan entry in /etc/hosts file.
    Now my question , How can I run the SCAN and SCAN_LISTENER both of the NODES ?Probably you can't in your case, you might run only one i think and on one node only
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr1
    now when I relocate it from node 2 using
    "srvctl relocate scan -i 1 -n DCDBSVR2" , then the output shows :
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr2You moved scan listener from node 1 to node 2, OK
    Baring these , we have to try to relocate it from the node2 by the following way, then it shows the error :
    srvctl relocate scan -i 2 -n DCDBSVR2
    resource ora.scan2.vip does not exists
    --------------------------------------------------------------------------------Since you have only one scan, you can't relocate "2". So ise "1" instead here also
    FYI
    http://www.oracle.com/technetwork/database/clustering/overview/scan-129069.pdf
    Salman

  • /etc/hosts is ignored

    I configured my computer to use tor and dnsmasq to resolve dns queries exactly how the arch wiki said to. This seems to work fine, however, when I try to add a entry into /etc/hosts it is ignored. To fix this I tried commenting out no-resolv but it did no good. Why is it ignoring my /etc/hosts file?
    Here is my /etc/hosts file:
    # /etc/hosts: static lookup table for host names
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost
    ::1 localhost.localdomain localhost
    0.0.0.0 facebook.com
    # End of file
    Facebook.com still works...
    Last edited by SteveDeFacto (2013-12-21 21:20:47)

    WonderWoofy wrote:If you are using dnsmasq, why not just put it in your dnsmasq.conf?  The formatting will obviously be different, but if that is what is resolving the dns, it would make more sense to put it there.
    Actually, the main reason I was trying to modify /etc/hosts is because I am wanting to build a decentralized peer-to-peer service. I need to redirect the user to localhost upon entering a url with ".mydomain" The only way I can think to do this is to add an entry into /etc/hosts.
    I just happen to be using tor/dnsmasq so my thought is that modifying /etc/hosts won't always work for people with abnormal dns configurations. I would like to understand why it is not working more than just finding a work around.

  • /etc/hosts vs DNS & sendmail

    Hi All,
    I have a question about how /etc/hosts & DNS work on a solaris 9 box.
    When I have entries in /etc/hosts that are not in DNS and I run say nslookup the utility will not find the ip. Put if I ping the entry in /etc/hosts it will find it. Basically I have a box with default sendmail and in /etc/hosts I have a entry with mailhost added to it at the end. nslookup does not find the box ping does and sendmail can't send mail to it and I can not verify that it ever worked correctly.
    1) what is up with nslookup no seeing /etc/hosts?
    2) can sendmail send to hosts per FQDN listed in /etc/hosts & use a DNS server at the same time?
    thanks
    -im

    When I have entries in /etc/hosts that are not in DNS
    and I run say nslookup the utility will not find the
    ip. Correct. nslookup and /etc/hosts are controlled by /etc/nsswitch.conf.
    Files says to search /etc/hosts.
    Anything else says to use that name service.
    Put if I ping the entry in /etc/hosts it will
    find it.If it is in /etc/hosts and /etc/nsswitch.conf says to search /etc/hosts.
    and in /etc/hosts I have a entry with mailhost added
    to it at the end. nslookup does not find the box ping
    does and sendmail can't send mail to it and I can not
    verify that it ever worked correctly. Sendmail can be compiled to use or disregard name server lookups in addition to the /etc/nsswitch.conf file.
    sendmail -v e-mail_addr, should show you some basic diagnostics.
    1) what is up with nslookup no seeing /etc/hosts?That's the way it works.
    2) can sendmail send to hosts per FQDN listed in
    /etc/hosts & use a DNS server at the same time?sure, see /etc/nsswitch.conf and the sendmail compile time options.
    http://www.ilkda.com/sendmail/
    alan

  • /etc/hosts Private Host Name Fully Qualified Domain Name does it matter?

    During installation of 11gR1 on Windows 2003 the examples in the installation guide show adding the Private IP and host name to /etc/hosts
    However they only add the short name, racnode1, not Fully qualified Domain Name (FQDN), racnode1.mycompany.com
    e.g.
    10.0.0.1 racnode1
    10.0.0.2 racnode2
    Later when installing the Clusterware it then expects to see the FQDN, racnode1.mycompany.com, of course you can modify this and remove the domain name and continue. OR go back and add the FQDN in /etc/hosts
    e.g.
    10.0.0.1 racnode1 racnode1.mycompany.com
    10.0.0.2 racnode2 racnode2.mycompany.com
    What is the best practice? Currently my company is just dropping the FQDN from the name during the install, my instinct is instead to add the FQDN to the /etc/host in the first place.
    Does anyone have a recommendation or experience with either situation?
    Will (using/ or not using) the FQDN cause me issues in the future?

    If it's a problem, the assistent will tell you :-)
    I don't think it's a problem.
    Please mind that the first entry will be the name of the ip address, if it's not in DNS and a utility tries to get the name. (that's the reason 127.0.0.1 resolves to localhost.localdomain, it's the first entry in /etc/hosts)

  • SAP on Ubuntu Correct settings for etc/hosts?

    Hi,
    I installed the SAP test drive version on Ubuntu (VirtualBox). After starting the SAP GUI (
    /home/minisap/SAPClients/SAPGUI7.20rev5/bin/guistart /H/ubuntu64/S/3242
    ) I get the following error:
    Error: partner 'ubuntu64:3242' not reached
    Sun Feb  5 14:07:26 2012
    Release 720
    Component NI (network interface), version 40
    rc = -10, module nixxi.cpp, line 3286
    Detail NiPConnect2: 127.0.0.1:3242
    System Call connect
    Error No 111
    'Connection refused'
    I guess that the settings of the file etc/hosts are not correct. After the installation of ubuntu the file contains
    10.0.2.15    ubuntu64    # Added by NetworkManager
    127.0.0.1    localhost.localdomain    localhost
    ::1    ubuntu64    localhost6.localdomain6    localhost6
    127.0.1.1    ubuntu64
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    According to the test drive readme file I have to ensure that etc/hosts contain at least the following lines:
    127.0.0.1      localhost      
    n.n.n.n      <HOSTNAME>.<DOMAINNAME>      <HOSTNAME>
    n.n.n.n      nplhost      
    where "n.n.n.n" is a valid IP-adress.
    I tried different settings but the above mentioned error still occurs... Does anyone know the correct settings of etc/hosts or know what the problem could be?
    Thanks and regards

    OK, I logged on as user nnpladm and typed
    startsap nplhost
    ps -ef|grep sap
    ps -ef|grep sap
    sdb       3424     1  0 16:15 pts/1    00:00:00 /sapdb/NPL/db/pgm/vserver -sdbstarter 1002 1003 A -S 7200 -Y
    sdb       3425  3424  0 16:15 pts/1    00:00:00 /sapdb/NPL/db/pgm/vserver -sdbstarter 1002 1003 A -S 7200 -Y
    sdb       3428     1  0 16:15 pts/1    00:00:00 /sapdb/programs/pgm/niserver
    sdb       3448     1  0 16:15 ?        00:00:00 /sapdb/NPL/db/pgm/kernel NPL -diagpipe 16
    sdb       3451  3448  0 16:15 ?        00:00:02 /sapdb/NPL/db/pgm/kernel NPL -diagpipe 16
    npladm    4903     1  0 16:16 ?        00:00:00 /usr/sap/NPL/SCS00/exe/sapstartsrv pf=/usr/sap/NPL/SYS/profile/START_SCS00_nplhost -D
    npladm    5187     1  0 16:16 ?        00:00:00 sapstart pf=/usr/sap/NPL/SYS/profile/START_SCS00_nplhost
    npladm    5209  5187  0 16:16 ?        00:00:00 ms.sapNPL_SCS00 pf=/usr/sap/NPL/SYS/profile/NPL_SCS00_nplhost
    npladm    5210  5187  0 16:16 ?        00:00:00 en.sapNPL_SCS00 pf=/usr/sap/NPL/SYS/profile/NPL_SCS00_nplhost
    npladm    6414     1  0 16:16 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/sapstartsrv pf=/usr/sap/NPL/SYS/profile/START_DVEBMGS42_nplhost -D
    npladm    6700     1  0 16:17 ?        00:00:00 sapstart pf=/usr/sap/NPL/SYS/profile/START_DVEBMGS42_nplhost
    npladm    6740  6700  0 16:17 ?        00:00:00 ms.sapNPL_DVEBMGS42 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
    npladm    6742  6700  0 16:17 ?        00:00:00 ig.sapNPL_DVEBMGS42 -mode=profile pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
    npladm    6755  6742  0 16:17 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/igsmux_mt -mode=profile -restartcount=0 -wdpid=6742 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
    npladm    6756  6742  0 16:17 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/igspw_mt -mode=profile -no=0 -restartcount=0 -wdpid=6742 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
    npladm    6757  6742  0 16:17 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/igspw_mt -mode=profile -no=1 -restartcount=0 -wdpid=6742 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
    npladm    7930  1544  0 16:47 pts/1    00:00:00 grep sap
    telnet ubuntu64 3242
    Trying ::1...
    Trying 127.0.1.1...
    Trying 10.0.2.15...
    telnet: Unable to connect to remote host: Connection refused

  • Gethostbyname returns h_errno 2, when /etc/hosts has no info on solaris x86

    Hello,
    I am calling gethostbyname(native_machine_name) in our code, and we do not want this to be dependent on /etc/hosts file. So when we remove all entries from /etc/hosts file, it works well on sparc machine, but the same doesnt work on solaris x86 machine. gethostbyname returns null with errno 2.
    Also "ping hostname" doesnt work on solaris x86 when there is no entry in /etc/hosts, but the same works on sparc machine.
    Is there any such dependency on x86 machine? If there is any then how to achieve this functionality (to get host info without /etc/hosts)?
    Any help would be appreciated.
    Thanks
    Ankur Gupta

    Sounds like your name resolution isnt working.
    Check you have host: files dns in /etc/nsswitch.conf
    and working name servers specified in /etc/resolv.conf

  • /etc/hosts error

    Hello,
    I'm trying to follow the cookbooks to install rac/linux/vmware on xp professional. Whenever i try and install the CRS I get an error message that says
    The local node entry in Cluster Configuration inforamtion does not match with the entry in /etc/hosts file. Verify local node information in /etc/hosts file and re-enter the correct value.
    I have followed the instructions and can't see where I have gone wrong. Can someone point me in the right direction...
    thanks

    I too am getting this same error on HP-UX install, any ideas?
    My nslookups, and /etc/hosts match up across the nodes, for the private and public networks, and the Cluster is created and looks good from clverify.

  • /etc/hosts entries

    Hi, I'm just starting to look at a 10.4.10 server (intel dual-core xenon). All this server does is run Zimbra. I've noticed the person who set it up made some changes to the /etc/hosts file and was wondering what effect these changes could have on the system. Here is the hosts file. I've also noticed that PID 0 kernel_task is running at about 75% CPU ALL the time!!
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 hostname.company.com mail.company.com localhost mail hostname
    255.255.255.255 broadcasthost
    ::1 localhost
    192.168.1.265 mail.comapny.com hostname.company.com localhost mail hostname
    Thanks for any help.
    Pat.

    The first few lines of the hosts file should be...
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    Pat.

  • /etc/hosts entries ignored

    My Mac Pro, OSX 10.5.8, is ignoring entries in the /etc/hosts/ file. I have been all over the net and not found the definitive solution to this for 10.5.8
    I know that 10.5.8 does not use /etc/resolv.conf in the expected way, so adding at the top of resolv.conf the line 'order hosts/bind' does not work.
    This is a super handy trick for the work I do (I do lots of conversions and migrations of websites and databases) and I have come to depend on my Mac resolving from the hosts file first, before going on to normal DNS.
    Any pointers would be very helpful.
    -Bosco

    That is probably because the *NetInfo Manager* application is no longer used. I use host file entries for ad blocking (in Snow Leopard, too), and it works just fine.
    The OP may have improper entries or is doing something like using a text file with non-Unix line endings, but without further feedback it is hard to say.

  • Strange entry in the /etc/hosts file

    Hi,
    While doing some testings with my network this afternoon, I noticed that there's this strange line in my /etc/hosts file:
    ::1 localhost
    Anybody has any idea what the "::1" is for? The only thing related to network that I had recently installed is VPN Tracker. Could it be VPN Tracker that added that line to the hosts file?
    Thanks in advance for your help!
    Frank
    PowerBook G4   Mac OS X (10.4.8)  

    It's supposed to be there, here's a fresh install's complete hosts file...
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost "
    Not sure what it means... may be a 16 bit number though! :-D

  • Why Do We need Host Entries in drivers-- etc--Host?

    What does host entries do with opening the Froms?

    user574397 wrote:
    Hi,
    If We are not entering any entries for an application(12.0.6)..It is not opening...Just Need details about significance of Host Entries....Searched in Google did not find an answer and hence posted a thread....What is the error you get?
    The entries in the hosts file are required for the application to function properly -- Please see these docs for details.
    Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86 [ID 761564.1]
    Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 [ID 761566.1]
    Thanks,
    Hussein

Maybe you are looking for

  • I cant figure out the notes....

    i was trying top set up the notes on my ipod but the fetures guide dosent explain a lot unless you have a mac..... and i dont so can someone "dumb" it down for me...... because it says in the feture guide to use windows explorer, the only eplorer i c

  • Drive wont "suck" in discs

    recently my macbook stopped accepting discs the way it used to i went to put in a dvd and it was like hitting a brick wall. its almost like the slot is not as far open as it used to be. my macbook has never been dropped or stepped on or anything. i h

  • Card reader of Hp 6500

    I bought this printer yesterday and I've problem with the card reader... I put my SDHC card, when I do safetly usb remove the card stay in my computer and not close. Ive windows 7 64 bit. How I do safetly usb remove of the card reader??

  • What is the latest version of safari for panther?

    Can someone tell me what the newest version of safari is for osx panther?

  • How to delete and add rows in a table control

    Hi   how to delete rows and add new rows in a tbale control Sathya