LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2007, 09:22 PM   #1
cnhawk386
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Rep: Reputation: 15
dns problem in lan


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

Last edited by cnhawk386; 09-18-2007 at 09:23 PM.
 
Old 09-19-2007, 10:30 AM   #2
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
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.
 
Old 10-15-2007, 11:04 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Excuse my "language", but WTF are you trying to do? -- "wb.com" comes up as http://www2.warnerbros.com/main/homepage/homepage.html in my browser, while whois says that "217.77.124.94" is located in Russia.

At the very least, you should never use a real domain name on a LAN unless you actually own it.
 
Old 10-15-2007, 11:34 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
For home lan I usually use .dom instead of .com that way I don't have to worry about stepping on another real domain.

mydomainname.dom
 
Old 10-15-2007, 06:05 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I use ".lan" -- same reason, same effect.

I think all the .{a..z}an "TLD's" should reserved for private use.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Problem - Can't resolve LAN IP's to names crazee64 Linux - Networking 3 07-12-2006 04:26 PM
How to configure DNS for a local LAN (at least I think I want DNS) FlyingPenguin128 Linux - Networking 8 12-11-2005 04:15 PM
two lan, one dns nmarmol Linux - Networking 1 09-08-2005 09:38 PM
dns-problem lan, winpc's, dslrouter/modem, 1x linux pdjong Linux - Networking 6 01-11-2004 03:41 PM
Lan DNS Null Linux - Software 1 12-10-2002 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration