LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-04-2005, 12:36 PM   #1
FunkyRes
Member
 
Registered: Mar 2004
Distribution: CentOS
Posts: 174

Rep: Reputation: 30
bind caching dns question


I have imap server on lan.
I have caching dns on lan.
I have a .tzo.com domain name
I port forward from router to imap server.

How do I poison the cache of my dns server so that when my laptop requests the .tzo.com domain name, instead of being given the real IP address, it is given the local IP address of the box on my lan?

Just doing it in /etc/hosts is not sufficient, since that breaks the mail client when it is not on my lan.
 
Old 05-04-2005, 12:48 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
just put the nameserver as the IP of the DNS that resolves ur Domain on the top in /etc/resolv.conf in u r DNSserver

regards
 
Old 05-04-2005, 01:01 PM   #3
FunkyRes
Member
 
Registered: Mar 2004
Distribution: CentOS
Posts: 174

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by masand
just put the nameserver as the IP of the DNS that resolves ur Domain on the top in /etc/resolv.conf in u r DNSserver

regards
/etc/resolv.conf is created by the dhcp client based on info provided by the dhcp server, and needs to be so that local hostnames are resolvable on any network I connect from.

What I need to do is configure my local nameserver to send a local IP address for that one specific real hostname.

Last edited by FunkyRes; 05-04-2005 at 01:02 PM.
 
Old 05-04-2005, 02:10 PM   #4
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
have u then configured that zones for ur domain on the local nameserver

regards
 
Old 05-04-2005, 02:33 PM   #5
FunkyRes
Member
 
Registered: Mar 2004
Distribution: CentOS
Posts: 174

Original Poster
Rep: Reputation: 30
Yes. My nameserver sends out information for .local as a tld

IE

utility.mpeters.local
desktop.mpeters.local
etc.

there are also private domain names at the school I sometimes connect to, so I have to allow dhcp to get the dns info when it connects.

I simply want mydomain.tzo.com to resolve to whatever my current IP address for my broadband is when my laptop is not at home, and I want mydomain.tzo.com to resolve to 192.168.15.2 when I am at home.

That way I can just tell evolution to connect to mydomain.tzo.com - and it will "just work"

Last edited by FunkyRes; 05-04-2005 at 02:34 PM.
 
  


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 DNS question little_ball Linux - Networking 8 02-23-2004 05:33 AM
DNS Bind question phowarth Linux - Networking 1 10-31-2003 02:31 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 02:54 PM
??? DNS or Bind Question ??? Viper Slackware 23 08-10-2002 12:01 PM
DNS Bind Question 360 Linux - Networking 1 08-14-2001 12:51 AM


All times are GMT -5. The time now is 09:51 AM.

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