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 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-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


Odd problem with DNS and IP change.

2009-02-28 Thread Andrei Brezan
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.


-- 
Andrei Brezan
310280 Arad - Romania
mobile +40 740 089 315
email andrei [at] bsoft-company.ro
www http://www.bsoft-company.ro/
___
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 andrei [at] bsoft-company.ro
www http://www.bsoft-company.ro/
___
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: DNS and IP

2007-11-06 Thread Wojciech Puchar
please read apache manual and set up httpd.conf right. it's not only 
possible, but very often used, i have 30 sites on one IP



On Sun, 4 Nov 2007, Brian Finniff wrote:



My question is, if you are running a website for 2 different people on the 
Internet and they both wanted to acquire a domain but you only have one IP 
address, would it be possible to forward each domain to the same IP address and 
somehow each one becomes distinct? If so, how is this possible? Can you explain 
to me how it can be done.

Oh and for reference, I am not talking about web redirects.

_
Windows Live Hotmail and Microsoft Office Outlook ? together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: DNS and IP

2007-11-05 Thread Jerry McAllister
On Sun, Nov 04, 2007 at 06:00:27PM -0500, Brian Finniff wrote:

 
 My question is, if you are running a website for 2 different people on the 
 Internet and they both wanted to acquire a domain but you only have one IP 
 address, would it be possible to forward each domain to the same IP address 
 and somehow each one becomes distinct? If so, how is this possible? Can you 
 explain to me how it can be done.
 

It sounds like you want to set up name based virtual hosts.
That is SOP for many servers.   It is documented.

You would also have to deal with the name server issues to get
the web stuff (ports 80 and 443) directed to your single IP.  If
you do the name service, that is easy.  If you have to beg another
service, then that could be the hardest part.

jerry


 Oh and for reference, I am not talking about web redirects.
 
 _
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


DNS and IP

2007-11-04 Thread Brian Finniff

My question is, if you are running a website for 2 different people on the 
Internet and they both wanted to acquire a domain but you only have one IP 
address, would it be possible to forward each domain to the same IP address and 
somehow each one becomes distinct? If so, how is this possible? Can you explain 
to me how it can be done.

Oh and for reference, I am not talking about web redirects.

_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS and IP

2007-11-04 Thread Bill Banks
Of course, just   setup a virtual host in your httpd.conf file point 
the dns to the same ip. Apache will take care of the rest.


Brian Finniff wrote:

My question is, if you are running a website for 2 different people on the 
Internet and they both wanted to acquire a domain but you only have one IP 
address, would it be possible to forward each domain to the same IP address and 
somehow each one becomes distinct? If so, how is this possible? Can you explain 
to me how it can be done.

Oh and for reference, I am not talking about web redirects.

_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  


--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com
 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS and IP

2007-11-04 Thread Olivier Nicole
Hi,

  Of course, just   setup a virtual host in your httpd.conf file point 
 the dns to the same ip. Apache will take care of the rest.

To be a litthe bit more precise, in your Apache configuraton you need
something like:

NameVirtualHost 10.0.0.1
VirtualHost 10.0.0.1
ServerName www.first-server.com
...
/VirtualHost

VirtualHost 10.0.0.1
ServerName www.second-server.com
...
/VirtualHost

BUT you will not be able to configure SSL on both sites, it will
be either one or the other. You need on distinct IP per site to
configure SSL.

Best regards,

Olivier


 Brian Finniff wrote:
 
  My question is, if you are running a website for 2 different people
  on the Internet and they both wanted to acquire a domain but you
  only have one IP address, would it be possible to forward each
  domain to the same IP address and somehow each one becomes distinct?
  If so, how is this possible? Can you explain to me how it can be
  done.
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS and IP

2007-11-04 Thread Jay Chandler

Brian Finniff wrote:

My question is, if you are running a website for 2 different people on the 
Internet and they both wanted to acquire a domain but you only have one IP 
address, would it be possible to forward each domain to the same IP address and 
somehow each one becomes distinct? If so, how is this possible? Can you explain 
to me how it can be done.

Oh and for reference, I am not talking about web redirects.

  


If you're talking port 80, google for Virtual hosts.

-- Jay
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS and IP

2007-11-04 Thread Norberto Meijome
On Sun, 4 Nov 2007 18:00:27 -0500
Brian Finniff [EMAIL PROTECTED] wrote:

 My question is, if you are running a website for 2 different people on the 
 Internet and they both wanted to acquire a domain but you only have one IP 
 address, would it be possible to forward each domain to the same IP address 
 and somehow each one becomes distinct? If so, how is this possible? Can you 
 explain to me how it can be done.
 
 Oh and for reference, I am not talking about web redirects.

Hi Brian,
to be more generic in the answer, you can map as many FQDN (fully qualified 
domain name) as you want to a single IP via DNS (you can even enable wildcard 
records in certain DNS server software that will match *.yourdomain.com to a 
default IP). 

That tells {client_software} that {this_FQDN} is {this_IP}. 
{client_software}will use that information in whatever form is suitable to 
{client_software} - in most cases it will contact {server_sofware} running in a 
server (or group of servers) running as {this_IP}. It is up to 
{server_software} to determine how the request from {client_software} is 
handled. 

For a variety of {server_software}, there is support for named based virtual 
hosts, where the server will behave differently depending on what FQDN the 
client is attempting to contact : web servers, FTP servers, etc. Others don't, 
because it doesn't make sense, or because the protocol used doesn't support 
such thing (HTTPS, for example).

If you want a more specific answer, you need to defined what you want to do. 
Odds are, you are talking about websites - the other replies to your mail 
should have answered that point.

Best,
B
_
{Beto|Norberto|Numard} Meijome

Q. How do you make God laugh?
A. Tell him your plans.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS and IP

2007-11-04 Thread cpghost
On Mon, 5 Nov 2007 13:50:17 +1100
Norberto Meijome [EMAIL PROTECTED] wrote:

 On Sun, 4 Nov 2007 18:00:27 -0500
 Brian Finniff [EMAIL PROTECTED] wrote:
 
  My question is, if you are running a website for 2 different people
  on the Internet and they both wanted to acquire a domain but you
  only have one IP address, would it be possible to forward each
  domain to the same IP address and somehow each one becomes
  distinct? If so, how is this possible? Can you explain to me how it
  can be done.
  
  Oh and for reference, I am not talking about web redirects.
 
 Hi Brian,
 to be more generic in the answer, you can map as many FQDN (fully
 qualified domain name) as you want to a single IP via DNS (you can
 even enable wildcard records in certain DNS server software that will
 match *.yourdomain.com to a default IP). 
 
 That tells {client_software} that {this_FQDN} is {this_IP}.
 {client_software}will use that information in whatever form is
 suitable to {client_software} - in most cases it will contact
 {server_sofware} running in a server (or group of servers) running as
 {this_IP}. It is up to {server_software} to determine how the request
 from {client_software} is handled. 

To be even more specific: the domain name of the recipient is
specified at ISO-OSI level 7 in the HTTP protocol with a Host:
header like this:

Host: www.example.com

This header, alongside other HTTP headers is received on port 80
of your web server, and it's up to your web server to route that
to the right virtual domain by serving the correct files...

By the way, if you're using Lighty (lighttpd), you can host
virtual domains as well:

http://trac.lighttpd.net/trac/wiki/Docs:ModSimpleVhost

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]