[Dnsmasq-discuss] Non-standard port and resolv.conf file
Uwe Schindler
uwe at thetaphi.de
Thu Aug 29 00:13:20 BST 2013
Hi,
I don’t think this should be fixed at all, because it violates the „official“ format of resolv.conf, see man page. A resolv.conf file modifies like this could not be read by libc’s resolver functions.
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
<http://www.thetaphi.de/> http://www.thetaphi.de
eMail: uwe at thetaphi.de
From: dnsmasq-discuss-bounces at lists.thekelleys.org.uk [mailto:dnsmasq-discuss-bounces at lists.thekelleys.org.uk] On Behalf Of Rance Hall
Sent: Wednesday, August 28, 2013 11:47 PM
To: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: Re: [Dnsmasq-discuss] Non-standard port and resolv.conf file
The standard fix for this is to create multiple resolv.conf files.
I use this:
/etc/resolv.conf.dnsmasq
/etc/resolv.conf.local
I also use a script to manage these in the event that my external ip is DHCP.
If /etc/resolv.conf changes copy it to /etc/resolv.conf.dnsmasq
then copy /etc/resolv.conf.local to /etc/resolv.conf
Configure dnsmasq to use the alternate /etc/resolv.conf.dnsmasq file instead of standard.
This serves two purposes.
1) it makes the server use itself for dns.
2) it keeps nonstandard stuff like what you discuss on the outside of the network and the internal network functions in a standard way. Easier troubleshooting.
If there is a limitation in dnsmasq proper about using alternate port Simon will fix it, he's good like that.
On Wed, Aug 28, 2013 at 12:46 PM, Scott Bonar <sbonar at cradlepoint.com> wrote:
Is there anyway to have dnsmasq use the same server address parsing when using the resolv.conf file as it does when using the 'server' command line/config option?
My issue is that I want to use the resolv.conf file so I don't have to restart dnsmasq, but the nameserver I am using also uses a non-standard port, i.e. not 53.
On the command line I can do something like '111.222.333.444#5353', but if I put this type of format in the resolv.conf file dnsmasq does not like it.
Thx
--
Scott Bonar | Lead Software Engineer | 208.870.7851
<http://www.cradlepoint.com/about/blog>
<http://www.cradlepoint.com/about/blog>
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss at lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
<http://www.cradlepoint.com/about/blog>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130829/2b3749c6/attachment.html>
More information about the Dnsmasq-discuss
mailing list