Re: Odd problem with DNS and IP change.

2009-03-04 Thread Tim Judd
On Sat, Feb 28, 2009 at 4:30 PM, Derek Ragona <
de...@computinginnovations.com> wrote:

> At 09:40 AM 2/28/2009, Andrei Brezan wrote:
>
>> Hello list,
>>
>>I have a strange problem and I don't know what to relate it to. My
>> ISP
>> changed my IP from (eg) 10.1.1.1 to 15.1.1.1. I have changed my zone
>> files to reflect that change.
>>
>> "dig -t mx domain.com" results in mail.domain.com 3600 IN A 15.1.1.1
>> (the new ip). However when i try:
>>
>> "ping mail.domain.com" it tries to get to 10.1.1.1 the old ip and gets
>> time to live exceeded fro an ip along the route. When i try to ping
>> domain.com it gets all ok as it pings the new ip. I've also tried dig
>> @(forwarders in named.conf) and they to got the correct mx dns entry for
>> domain.com.
>>In rc.conf i have hostname="mail.domain.com" (eg), i haven't
>> changed
>> it, i'm thinking it's something related to hostid or hostuid but i don't
>> know where to search for this topic.
>>If anyone has a clue what to try or where to look upon this
>> behavior
>> please shed some light.
>>
>> Thank you.
>>
>>
> Check /etc/hosts which is used before DNS.
>
>-Derek
>

Depends on your nsswitch.conf(5) setup.  If dns is specified before files,
DNS will be checked before /etc/hosts will be.

It's all configurable and it's important to know the difference
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Odd problem with DNS and IP change.

2009-03-01 Thread Derek Ragona

At 09:40 AM 2/28/2009, Andrei Brezan wrote:

Hello list,

I have a strange problem and I don't know what to relate it to. 
My ISP

changed my IP from (eg) 10.1.1.1 to 15.1.1.1. I have changed my zone
files to reflect that change.

"dig -t mx domain.com" results in mail.domain.com 3600 IN A 15.1.1.1
(the new ip). However when i try:

"ping mail.domain.com" it tries to get to 10.1.1.1 the old ip and gets
time to live exceeded fro an ip along the route. When i try to ping
domain.com it gets all ok as it pings the new ip. I've also tried dig
@(forwarders in named.conf) and they to got the correct mx dns entry for
domain.com.
In rc.conf i have hostname="mail.domain.com" (eg), i haven't changed
it, i'm thinking it's something related to hostid or hostuid but i don't
know where to search for this topic.
If anyone has a clue what to try or where to look upon this behavior
please shed some light.

Thank you.



Check /etc/hosts which is used before DNS.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Odd problem with DNS and IP change.

2009-03-01 Thread Mel
On Saturday 28 February 2009 07:43:13 Andrei Brezan wrote:
> Andrei Brezan wrote:

> > "ping mail.domain.com" it tries to get to 10.1.1.1 the old ip and gets
> > time to live exceeded fro an ip along the route. When i try to ping
> > domain.com it gets all ok as it pings the new ip.

> Disregard my noise. It was a file called hosts in /etc, changed there
> the ip for mail.domain.com and now ping works ok.
> Sorry about that.


As a rule, only use /etc/hosts for hosts that cannot be resolved by DNS (i.e.: 
local network) or NFS hosts that provide critical filesystems (because the 
resolver might not be reachable at /etc/rc.d/mountcritremote time).
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Odd problem with DNS and IP change.

2009-02-28 Thread Andrei Brezan
Andrei Brezan wrote:
> Hello list,
> 
>   I have a strange problem and I don't know what to relate it to. My ISP
> changed my IP from (eg) 10.1.1.1 to 15.1.1.1. I have changed my zone
> files to reflect that change.
> 
> "dig -t mx domain.com" results in mail.domain.com 3600 IN A 15.1.1.1
> (the new ip). However when i try:
> 
> "ping mail.domain.com" it tries to get to 10.1.1.1 the old ip and gets
> time to live exceeded fro an ip along the route. When i try to ping
> domain.com it gets all ok as it pings the new ip. I've also tried dig
> @(forwarders in named.conf) and they to got the correct mx dns entry for
> domain.com.
>   In rc.conf i have hostname="mail.domain.com" (eg), i haven't changed
> it, i'm thinking it's something related to hostid or hostuid but i don't
> know where to search for this topic.
>   If anyone has a clue what to try or where to look upon this behavior
> please shed some light.
> 
> Thank you.
> 
> 

Disregard my noise. It was a file called hosts in /etc, changed there
the ip for mail.domain.com and now ping works ok.
Sorry about that.

-- 
Andrei Brezan
310280 Arad - Romania
mobile <+40 740 089 315>
email 
www 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"