Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is vague enough.
I still cannot figure out what is the IP of your isp's nameserver. And there is no such entry in your /etc/resolv.conf to help me understand. I think it is the 192.168.1.1.
The reason that is said to be vague is, 172.16.0.1 is not the *public* IP address that you are getting from your ISP. 172.16.0.1 is a *private* IP address only available to a local private network.
and if 172.16.0.1 if not public ip so what should i do , becz it is the only ip provided by ISP and this ip is configured in my system to access internet.
so, finally how can i dig yahoo.com or some else site.
Can you do a dig command on the public IP that was returned from whatismyip.com? This will output your ISP's nameservers. The main one needs to be put in /etc/resolv.conf with the line
nameserver isp_primary_nameserver
replace isp_primary_nameserver with the IP address of your ISP's primary DNS server.
I can tell you how to find you ISP's real DNS address using the nslookup command, since I'm used to it.
(I use bind from the old days and dig is a relatively new command)
Code:
# nslookup
> set q=any
> server ns1.yahoo.com
> yourISPdomain.com
Non-authoritative answer:
....
Authoritative answers can be found from:
....
The last answer will tell you your ISP's DNS server names and IPs.
Just write the domain of you ISP (e.g. domain.com) and it'll tell you who are the authoritative servers for it.
Then use them in /etc/resolv.conf and /etc/named.conf (as forwarders)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.