DNS Server

thomas.kaiblinger at chello.at thomas.kaiblinger at chello.at
Tue Apr 13 10:33:38 BST 2004


Hello Peter,

the point is when I start the named daemon it has only the real Ip addresses and so it only listens to these addresses. I made a nmap portscan to show the difference:

Interesting ports on  (Real IP Address):
(The 1594 ports scanned but not shown below are in state: closed)
Port       State       Service
22/tcp     open        ssh                     
53/tcp     open        domain                  
80/tcp     open        http                    
111/tcp    open        sunrpc                  
139/tcp    open        netbios-ssn             
443/tcp    open        https                   
445/tcp    open        microsoft-ds 

Interesting ports on  (virtual IP):
(The 1595 ports scanned but not shown below are in state: closed)
Port       State       Service
22/tcp     open        ssh                     
80/tcp     open        http                    
111/tcp    open        sunrpc                  
139/tcp    open        netbios-ssn             
443/tcp    open        https                   
445/tcp    open        microsoft-ds  

I have to restart the named daemon after the virtual IP address has been assigned that named binds to the virtual address. It listens on every address that is up when I start the daemon and not on those that are up after the start of named.
Is there a chance to put the command "named restart" after the aquiration of the virtual address?

Thank you

Date: Fri, 9 Apr 2004 09:00:40 -0700
From: Peter Mueller <pmueller at sidestep.com>
Subject: RE: DNS Server
To: "'thomas.kaiblinger at chello.at'" <thomas.kaiblinger at chello.at>,
	<lvs-users at LinuxVirtualServer.org>
Message-ID:
	<37328159548B4242A34141B1A69CDB73031BB273 at 206.173.5.100.ptr.us.xo.net>
Content-Type: text/plain;	charset="ISO-8859-1"

> I want to run a DNS Server on a LVS Cluster. How can I tell named to 
> restart after the virtual IP Addresses are aquired and ready to use?
> When I start named the daemon does only listen on the real IP 
> Addresses.

If I understand you correctly, you are looking to have named listen on 0.0.0.0/53.  This should be default behavior in redhat via /etc/named.conf.
If it's not default you need to edit that file and restart named.conf.

>From man named.conf:

     ip_addr
        An IP address in with exactly four elements in dotted-decimal nota­
        tion.

     ip_port
        An IP port number.  number is limited to 0 through 65535, with values
        below 1024 typically restricted to root-owned processes.  In some
        cases an asterisk (``*'') character can be used as a placeholder to
        select a random high-numbered port.

     ip_prefix
        An IP network specified in dotted-decimal form, followed by  ``/''
and
        then the number of bits in the netmask.  E.g.  127/8 is the network
        127.0.0.0 with netmask 255.0.0.0.  1.2.3.0/28 is network 1.2.3.0 with
        netmask 255.255.255.240.

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 4/9/2004
 

------------------------------




More information about the lvs-users mailing list