Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I disable IPv6 lookup when querying DNS?

 
SOLVED
Go to solution
Anshumali
Esteemed Contributor

Re: Can I disable IPv6 lookup when querying DNS?

<>

and why did I write:
You can check the syntax and modify that as per your usage.
:) :)
However...
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Highlighted
Anshumali
Esteemed Contributor

Re: Can I disable IPv6 lookup when querying DNS?

and i rechecked your no-DNS query thing:

what i have is:

root@xxxx:/tmp # cat /etc/nsswitch.conf |grep -e host -e ipnodes
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return]
ipnodes: files [NOTFOUND=return]

and nslookup query for something which is not in /etc/hosts:

root@xxxxx:/tmp # nslookup drc-cifs-pr6
Using /etc/hosts on: sustw4

looking up FILES
Trying DNS
Name: drc-cifs-pr6.xxx.com.xx
Address: 10.101.1.154

It *goes* to DNS as per the hosts configuration in nsswitch.conf. ;)
So, bottom line is till you understand the syntax, it will work as you need.

----- There is no single answer in UNIX. ;)
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!