Convice Bind to listen on IP alias with a range of IPs.

Larry Brower lbrower at hostgator.com
Tue May 1 02:35:12 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 04/30/2012 06:14 PM, Augie Schwer wrote:
> I think you've all missed the netmask there, 10.0.0.2 is in that range.
> 
> augie at augnix:~$ sudo ifconfig lo:1 10.0.0.1 netmask 255.255.255.224
> 
> augie at augnix:~$ ifconfig lo:1
> lo:1      Link encap:Local Loopback
>           inet addr:10.0.0.1  Mask:255.255.255.224
> 

This is only showing the IP 10.0.0.1/27 which is a single IP on the box.
You dont get a range of IP's by using a specific mask on the interface.


> augie at augnix:~$ ping 10.0.0.2 -c 1
> PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
> 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.027 ms
> 
> --- 10.0.0.2 ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> 

You have 10.0.0.2 bound to a system somewhere which is nice but has
nothing to do with lo:1

> Given all that, can anyone suggest a reason why Bind won't listen on
> that address?


Because you are doing it wrong.

You need to actually have the IP bound to an interface on the server for
it to work.



- -- 


Larry Brower, CCNA
Linux System Administrator II
HostGator.com LLC

lbrower at hostgator.com
Http://www.hostgator.com
Http://support.hostgator.com/

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJPn0vfAAoJEF1Xw4ZWTEoJsKoQAK6OfTyORlqJnRYTdKFIQJue
Jsh4ZgQlqGGNU7gqlqEbKWsJ7nn7rawWxZMM/XGoW7FBIjgZaO9fComu4kNS5iEi
oxal2B9ruKaIc2lG/ZoJzXkfpSmoEsXQ6DOUFlXwkyrPySdZ9qSLs61GVZL/OCUq
h42xlLQL8qF4pkrYUVwElclEs6vcRQY52DiPUuDz6hjtdOflTytpD9gkpXfPEgje
SHFM+Lgdi82fLfBwtJkqCkztQ17+XQR1P3Xg4XK4B1TNyilCZO4UKs+7NpBVLHA7
iLySYWQokz+ZLhRrELkDWekGbF8fvSOug3ObsdqRseLTdevqkyNYEPw70DHzR8a1
/HxFIyknxTFsY/37W4BuT02h8+hNGOJUN2VWEc3E78Cf2Qdip2oUrleLppy8+g1J
d7j/FH8KB7S2e/zJV/jMwT3DykUWzZEG5H/rVVxl3mwlp54+Od71pxh6WBHQU5I1
P14joF/9qKpO4ghwlDIbZ9OoYxAP78IQm6qbx1syty2HOHy2Rs0qlgflIvydjE1f
LSLJWezdmwPtgC/onD6X++JP3+vTW1TGC4agSx6oxasaJqjuZrWm9vJ9dmca2pR/
CPdDSMavRynySCHRKoGiO34ZgzGDAmu+UoU2H00NMJH7Z54eIzBAyHURPO+tJ3KD
LG/KR7ew2ayX36i5lcNk
=UzLF
-----END PGP SIGNATURE-----



More information about the bind-users mailing list