1833821 Members
2655 Online
110063 Solutions
New Discussion

Re: IP Aliasing and DNS

 
Ross Goldman_1
New Member

IP Aliasing and DNS

Hi all. I have a 10.20 host that has IP aliasing on it. I'm trying to make the host a DNS primary and use the second (aliased, or "non real") address for this function. It doesn't work. When I try resolving using the aliased address I get "Specified server is not availiable." If I switch the IP addresses and now resolve using the "real" address it works fine. Could it be that the aliasing doesn't extend to the lower network protocol layers? Any help/suggestions would be appreiciated!
5 REPLIES 5
steven Burgess_2
Honored Contributor

Re: IP Aliasing and DNS

Hi

If you don't get an answer, you could ask

http://www.acmebw.com/askmrdns/archive.php?category=83

HTH

Steve
take your time and think things through
Tom Danzig
Honored Contributor

Re: IP Aliasing and DNS

How did you make the alias? I would add a CNAME entry pointing to the real host name in the appropriate DNS zone file.

If you need to assign a different IP for this, you can use IP multplexing to assign another IP to an existing LAN card. An entry in the /etc/rc.config.d/netconf file for this would look like:

INTERFACE_NAME[5]=lan0:1
IP_ADDRESS[5]=10.1.1.123
SUBNET_MASK[5]=255.255.255.0
BROADCAST_ADDRESS[5]=10.1.1.255
INTERFACE_STATE[5]=up
DHCP_ENABLE[5]=0

lan0 would now have two IP's assigned to it.
Ross Goldman
New Member

Re: IP Aliasing and DNS

I'm doing the aliasing at the NIC level using ifalias. Sorry, should have specified that.
Jordan Bean
Honored Contributor

Re: IP Aliasing and DNS


Which version of BIND are you using? Have you reviewed the name server log for errors binding errors?



Christopher Caldwell
Honored Contributor

Re: IP Aliasing and DNS

netstat -an | grep .53\ | grep LIST

should show you something like
tcp 0 0 *.53 *.* LISTEN

Which says that named is listening for requests on all IPs for the given port.

If you're running 10.20 you're probably running a 4.x.x series named, which bound to ports using INADDR_ANY (listen on all IPs).

If you have a host with an ifaliased IP, make sure to point the db records for named to the IP (don't use CNAMES, make sure you have a revese name entry).

e.g.

Forward
A.B.COM IN A 1.2.3.4
NS1.B.COM IN A 1.2.3.5

Reverse
1.2.3.4 IN PTR A.B.COM.
1.2.3.5 IN PTR NS1.B.COM.

When you receive answers from this server, you'll get answers on the base IP, not the ifaliased IP, because of the way named binds to IPs in the 4.x.x series.