Operating System - HP-UX
1850730 Members
2595 Online
104055 Solutions
New Discussion

nslookup shall prefer one address

 
Peter Klausner_1
Frequent Advisor

nslookup shall prefer one address

Hi,

is there a possibilty to determine the order of Ip-Addresse when making an nslookup

example:
root @ ovhost-prod> nslookup ovhost


Trying DNS
Name: ovhost.systor.com
Addresses: 10.122.13.66, 10.122.28.66, 10.122.13.65



The list of IP-Addresses shall start with 10.122.13.65


Thanks ind advance


Peter






4 REPLIES 4
U.SivaKumar_2
Honored Contributor

Re: nslookup shall prefer one address

Hi,
yes , it depends on the order of your A records
placed in your zone data file.
for example
If the order is like this

ovhost IN A 10.122.13.65
ovhost IN A 10.122.28.66
ovhost IN A 10.122.13.66

Then nslookup will present like this
(dont forget to restart named after this change)

Name: ovhost.systor.com
Addresses: 10.122.13.65, 10.122.28.66, 10.122.13.66

dont forget to restart named after this change

regards,
U.SivaKumar




Innovations are made when conventions are broken
Peter Klausner_1
Frequent Advisor

Re: nslookup shall prefer one address

Hi,


the order plays no role. The whole process seems to be random.


Peter
U.SivaKumar_2
Honored Contributor

Re: nslookup shall prefer one address

Hi,
sorry , misunderstood your question

IF you are using BIND 9 , there is no way to stop this randomness.

But in BIND 8 it is possible ,

put the A records as i told you in my previous
post.

Edit /etc/named.conf and put this rrset-order option

options {
directory "/var/named/";

rrset-order { order fixed; };

};

restart named.

that's it.

regards,
U.SivaKumar



Innovations are made when conventions are broken
Peter Klausner_1
Frequent Advisor

Re: nslookup shall prefer one address

Hi,

thank you for the hint.
I put the following line in the /etc/named.boot

options no-round-robin

Now it works




Peter