+ Post New Thread
Results 1 to 3 of 3
Mac Thread, OSX Lion HOSTS file being ignored in Technical; Hi folks, I have edited the hosts file on my macbook running Lion 10.7.4 but whatever changes I make they ...
  1. #1
    Admiral208's Avatar
    Join Date
    Mar 2008
    Location
    Bridgwater
    Posts
    719
    Thank Post
    176
    Thanked 63 Times in 55 Posts
    Rep Power
    39

    OSX Lion HOSTS file being ignored

    Hi folks,

    I have edited the hosts file on my macbook running Lion 10.7.4 but whatever changes I make they are ignored.

    After a lot of googling I have found that the hosts file is 2nd in the list when resolving addresses. It uses the my DNS server 1st.

    There are a lot of suggestions on the web about putting the modifications at the top of the hosts file and making sure the file is still in the correct format but nothing seems to work. There is also a suggestion to install a local DNS server on the machine but I dont want to do that.

    Can anyone shed any light on whats going wrong. Has anyone successfully modified the hosts file on their mac?

    Thanks

    James

  2. #2
    JR-PCS's Avatar
    Join Date
    Apr 2012
    Posts
    91
    Thank Post
    3
    Thanked 19 Times in 18 Posts
    Rep Power
    11
    edit the file resolv.conf in /etc with the line:

    order hosts, bind

    However if you use DHCP whenever you re-lease your IP this file will be overwritten so you will need to be on a manual IP for this to work properly. You will need to put this line before nameserver too.

  3. Thanks to JR-PCS from:

    mac_shinobi (1st July 2012)

  4. #3

    Join Date
    Jul 2012
    Location
    Dubai
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I had the same issue, and the above sorted it out

SHARE:
+ Post New Thread

Similar Threads

  1. A free file browser for OSX Lion?
    By Dos_Box in forum Mac
    Replies: 7
    Last Post: 30th January 2012, 11:25 AM
  2. Apple OSX Lion to be released today?
    By Dos_Box in forum Mac
    Replies: 25
    Last Post: 22nd July 2011, 08:07 AM
  3. My PHP config file - please ignore
    By monkey_boy in forum Other Stuff
    Replies: 0
    Last Post: 24th April 2007, 11:29 AM
  4. Hosts file not working
    By Zoom7000 in forum Windows
    Replies: 7
    Last Post: 27th February 2007, 12:14 PM
  5. Local HOSTS file ignored on a domain
    By eejit in forum Windows
    Replies: 19
    Last Post: 24th June 2005, 02:10 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •