Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 9
  1. #1
    groggon is offline Registered User
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to set primary DNS to be manual and secondary to be DHCP?

    Hello,

    I am using dnsmasq locally and I have put my primary DNS to be 127.0.0.1
    However, I have only a few addresses to be resolved by dnsmasq and I don't want to run a complete DNS cache server on my system.

    Because it is a laptop and I am using it over various wifi networks, I need the secondary DNS to be updated by DHCP as I am roaming around.

    I want the primary one to be 127.0.0.1 but the rest to be whatever DHCP said it should be.

    How can I achieve that? I think it will be easier to achieve through some system setting rather than by tweaking my dnsmasq install but I might be wrong on that and I am waiting for your input.

    Thanks!

  2. #2
    Satcomer's Avatar
    Satcomer is offline In Geostationary Orbit
    Join Date
    Jul 2002
    Location
    Northern Virginia
    Posts
    8,880
    Thanks
    54
    Thanked 385 Times in 369 Posts
    127.0.0.1 ? Why? This is the TCP/IP address for local loopback to test your TCP/IP setup. OS X use 127.0.0.1 your CUPS (printing System Settings) settings.
    Last edited by Satcomer; June 21st, 2012 at 07:39 AM.
    Mac Pro Dual 2.8 Quad (2nd gen), 14G Ram, Two DVD-RW Drives, OS X 10.8.3
    2006 Mac Book Pro 2.16 (first Gen) OS X 10.7.4
    2TB Time Capsule, 2 TB
    32G iPhone 4S Black, iPad (3rd Gen) 32G Black

  3. #3
    groggon is offline Registered User
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    What? What does CUPS have to do with anything? 127.0.0.1 is not used only by CUPS, I don't get your point

  4. #4
    MisterMe is online now Registered User
    Join Date
    Jun 2002
    Location
    USA
    Posts
    3,986
    Thanks
    7
    Thanked 140 Times in 136 Posts
    What Satcomer is telling you is that 127.0.0.1 is your local computer known as localhost. To use 127.0.0.1 as the IP-address for your DNS server, then you must run a DNS server on localhost. It is hard to put into words how little sense this makes.

  5. #5
    groggon is offline Registered User
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Like you said, it doesn't make sense, unless I am missing something?
    I am using dnsmasq locally and I have put my primary DNS to be 127.0.0.1
    -> There is a DNS server running on localhost, it's just not a complete cache (used for tunlr.net) and I want the DNS indicated by the DHCP server to be set as secondary so that whatever is not in my local DNS can still be resolved.

  6. #6
    BjarneDM's Avatar
    BjarneDM is offline Registered User
    Join Date
    Oct 2005
    Location
    København ; Danmark ; Europa
    Posts
    218
    Thanks
    0
    Thanked 14 Times in 14 Posts
    @Satcomer , @MisterMe : You frankly don't know what you are talking about. It makes perfect sense to run a DNS server on localhost when one is testing/developing webpages or has webservers on the local net.

    @groggon
    you can't mix and match DNS servers in that way as far as I know.

    I'm in the same situation as you, and my way to resolve the mobility problem has been to use one or more of the globally available DNS servers like OpenDNS or Google.

    Just open the Network pref.pane and enter the IP-numbers for the DNS servers with the 127.0.0.1 for dnsmasq as the first/top entry for each network interface

  7. The Following User Says Thank You to BjarneDM For This Useful Post:

    groggon (June 23rd, 2012)

  8. #7
    groggon is offline Registered User
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    That's what I have done for now. I was hoping for a cleaner solution but it seems this is the only possible solution. Thanks for your help!

  9. #8
    Satcomer's Avatar
    Satcomer is offline In Geostationary Orbit
    Join Date
    Jul 2002
    Location
    Northern Virginia
    Posts
    8,880
    Thanks
    54
    Thanked 385 Times in 369 Posts
    Quote Originally Posted by BjarneDM View Post
    @Satcomer , @MisterMe : You frankly don't know what you are talking about. It makes perfect sense to run a DNS server on localhost when one is testing/developing webpages or has webservers on the local net.
    Maybe he wants something simple like the shareware DNS Enabler or something along that line. It will make his/her life so much simpler in the DNS web server mode easier.
    Mac Pro Dual 2.8 Quad (2nd gen), 14G Ram, Two DVD-RW Drives, OS X 10.8.3
    2006 Mac Book Pro 2.16 (first Gen) OS X 10.7.4
    2TB Time Capsule, 2 TB
    32G iPhone 4S Black, iPad (3rd Gen) 32G Black

 

 
Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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