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.
I am in LAN(through a router to visit internet),I set up a dns server,doamin name is wb.com
for example, host 192.168.0.4 is xsb.wb.com,
WAN interface ip of router is 217.77.124.94
how can I do to achieve that resolve xsb.wb.com to ip 217.77.124.94 in LAN
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344
Rep:
If you are trying to set up the PC's on the local LAN to resolve "xsb.wb.com" to 217.77.124.94 and your local subnet is 192.168.0.0 then it won't work very efficiently. A better solution might be to alter the local PC hosts file and reflect that "xsb.wb.com" is really 192.168.0.4. If you try and have the dns resolve to the public IP it will go out the router to the world and then turn around and come right back in again and it might end up in a loop. The other alternative it to set up a LAN based dns if you don't want to change the hosts file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.