LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-13-2001, 06:27 PM   #1
360
Member
 
Registered: Jun 2001
Distribution: FC4
Posts: 136

Rep: Reputation: 15
Question DNS Bind Question


Help me point foo.com to big.foobar.com

foo.com is my personal domain that I control DNS for.
big.foobar.com is on a webserver on a different network in a different country. I have a user account, big, with a website, big.foobar.com.

What do I put on foo.com zone file to point that site to the big directory at foobar.com?

I have been trying to find an answer in O'reilly's DNS and Bind 4th Edition so if you'd like, refer me to the chapter or page.

I can accomplish this easy with Apache but I would rather do it through DNS so the trace route goes to foobar.com.

thanks.
 
Old 08-13-2001, 11:51 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
For the zone foobar.com.

If you're using the shortened notation...
Code:
@ IN SOA big.foobar.com.   hostmaster.big.foobar.com.     (
				serial;
				and TTL;
				values;
				);

	IN NS big.foobar.com.
	IN NS bigger.foobar.com.


	IN A 111.111.111.111  #big.foobar.com's IP
www	IN A 111.111.111.111  #www.foobar.com's IP
mail	IN A 111.111.111.222  #mail.foobar.com
Note the blanks ahead of the IN NS and IN A records. We are implying that we use the $ORIGIN (the zone name) in any lines that DON'T end in a dot. So "" implies "foobar.com" and "www" implies "www.foobar.com" etc... We could also have used
Code:
foobar.com.		IN A 111.111.111.111
www.foobar.com.		IN A 111.111.111.111
mail.foobar.com		IN A 111.111.111.222
foobar.com and www.foobar.com will point to 111.111.111.111, but since I left out the trailing "." on mail.foobar.com it will make "mail.foobar.com.foobar.com" point to 111.111.111.222 - a common mistake.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
bind caching dns question FunkyRes Linux - Software 4 05-04-2005 01:33 PM
DNS and bind amjad General 0 02-17-2005 09:19 AM
Bind DNS question little_ball Linux - Networking 8 02-23-2004 04:33 AM
DNS Bind question phowarth Linux - Networking 1 10-31-2003 01:31 AM
??? DNS or Bind Question ??? Viper Slackware 23 08-10-2002 11:01 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration