[SLE] route.conf - losing local dns server when connected to 'net
During a bit of a tidy up earlier, I removed a couple of machines from /etc/hosts since they were now all accessible via the local DNS server. Having checked all that out locally, all was well. However, when I make an internet connection (via wvdial etc.etc.) I've just noticed sendmail has just bounced a stack of mails back (most to this list....oops) that it would normally relay on to another local machine. It seems that when I'm connected to the 'net my local DNS server is no longer accessible - I think I've just tracked that down to the modifications made to /etc/resolv.conf (in ip-up) - only references to 'domain' and 'search' are taken from the local version to make the ppp version - so I think I can fix it by also including in 'nameserver' as well. I'm just a bit worried this has been missed out for a good reason and whether there is a 'correct' way of doing this rather than hacking the script. -- == jon bird - software engineer == <reply to address _may_ be invalid, real mail below> == <reduce rsi, stop using the shift key> == posted as: news@onastick.clara.co.uk == email: jon@onasticksoftware.co.uk == web: www.onasticksoftware.co.uk -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
jon bird wrote:
During a bit of a tidy up earlier, I removed a couple of machines from /etc/hosts since they were now all accessible via the local DNS server. Having checked all that out locally, all was well. However, when I make an internet connection (via wvdial etc.etc.) I've just noticed sendmail has just bounced a stack of mails back (most to this list....oops) that it would normally relay on to another local machine. It seems that when I'm connected to the 'net my local DNS server is no longer accessible - I think I've just tracked that down to the modifications made to /etc/resolv.conf (in ip-up) - only references to 'domain' and 'search' are taken from the local version to make the ppp version - so I think I can fix it by also including in 'nameserver' as well. I'm just a bit worried this has been missed out for a good reason and whether there is a 'correct' way of doing this rather than hacking the script.
Is your local DNS server set up as a caching DNS server, or just a stand-alone server for your home 'domain'? If it is set up for caching, then you shouldn't ever need to alter /etc/resolv.conf as you just query the caching server every time. If the local DNS server just deals with a local domain, and doesn't speak to any other DNS servers, then you could be in for some problems, as you have two seperate DNS servers for two unconnected domains, which you shouldn't have. Assuming you have a caching DNS server that is set up correctly, keep the /etc/resolv.conf the same all the time. Hope that helps, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (2)
-
chris.reeves@iname.com
-
news@onastick.clara.co.uk