The default query-source uses which IP address?
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Wed Nov 6 20:13:45 UTC 2002
>
> Hello,
>
> Could someone please answer this question?
>
> The bind is set up as a caching-only server and listens to
> 127.0.0.1:53.
>
> This system has two network interfaces, eth0 and eth1. The
> /etc/named.conf doesn't define query-source. "man named.conf" says
> that INADDR_ANY is used if query-source is not defined, but it doesn't
> mention which IP is used for a multi-homed system. I know I can use
> query-source to be sure. But I would like to know which IP is used
> when the bind makes a query without query-source defined.
>
> Here is the environment in question.
>
> OS: RedHat Linux 7.2 (kernel 2.4.7-10)
> Bind: bind-9.2.1-1.7x.2
> Network Interfaces:
> eth0 => 192.168.0.11
> eth1 => 199.xxx.xxx.xxx
> Routing Table:
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth0
> 199.xxx.xxx.xxx 0.0.0.0 255.255.255.0 U 0 0
> 0 eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
> 0 lo
> 0.0.0.0 199.xxx.xxx.1 0.0.0.0 UG 0 0
> 0 eth1
>
>
> Thanks very much,
>
Which ever address is appropriate for the network named is talking
to.
If it is talking to 192.168.0/24 then it will use 192.168.0.11.
If it is talking to 127/8 then it will use 127.0.0.1.
If it is talking else where it will use 199.xxx.xxx.xxx.
Mark
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at isc.org
More information about the bind-users
mailing list