LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-18-2003, 06:58 AM   #1
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Rep: Reputation: 30
Question DNS & Virtual hosting help needed


EDIT:
I shouldnt have used real hostnames

Last edited by amp2000; 01-20-2004 at 05:25 PM.
 
Old 12-18-2003, 12:03 PM   #2
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
The problem is that irishangling.net and durban-house.com are not resolving to the correct IP address. It seems as though they are sitting on some redirect server. os-solutions, on the other hand, is set up correctly.

More detail:

Lets say I want to know what IP address irishangling.net resolves to:
# dnsqr a irishangling.net
1 irishangling.net:
98 bytes, 1+4+0+0 records, response, noerror
query: 1 irishangling.net
answer: irishangling.net 1273 A 66.150.161.135
answer: irishangling.net 1273 A 66.150.161.136
answer: irishangling.net 1273 A 66.150.161.134
answer: irishangling.net 1273 A 66.150.161.133

(note, dnsqr is a command that comes with the djbdns package)

That IP is /not/ the 65 IP that you want it to be on. Lets try durban-house.com:

# dnsqr a durban-house.com
1 durban-house.com:
98 bytes, 1+4+0+0 records, response, noerror
query: 1 durban-house.com
answer: durban-house.com 1800 A 66.150.161.135
answer: durban-house.com 1800 A 66.150.161.133
answer: durban-house.com 1800 A 66.150.161.136
answer: durban-house.com 1800 A 66.150.161.134

Same thing. What about os-solutions.net?

# dnsqr a os-solutions.net
1 os-solutions.net:
50 bytes, 1+1+0+0 records, response, noerror
query: 1 os-solutions.net
answer: os-solutions.net 2400 A 65.248.4.86

Hey! That ones right

So what can we figure out by this? OK.. first, what in the world is 66.150.161.* ? Lets try a reverse name on it:

# dnsname 66.150.161.134
redirectf.dnsix.com

OK.. sounds like its a redirect server. Probably something set up when you registered the domains at mydomain.com.

Lets jump out of DNS and into Apache real quick.

One note you always want to keep in mind with Apache virtual hosts is that the /first/ one listed will be the one used if you type in the IP address and not the domain name. Try typing in 65.248.4.86 in your browser, and you'll get durban-house.com

OK, now that we know that.. we'll jump back to DNS and conclude this up.

Why is os-solutions.net working?
Because its resolving to the correct IP address without being redirected anywhere.

Whats going on with the other two:
You type the name in your browser. Your computer sends out a request for, say, irishangling.net. It gets to that redirect server. The redirect server then mangles the request packet. It tosses all the information about irishangling.net away and just leaves the IP address 65.248.4.86. Your browser gets to your web server at that IP address, but since theres no irishangling.net information left, it defaults to the first virutal host in apache.

Its really mixed up and confusing.. but understand whats going on?
Basically, the problem lies at mydomain.com and how they are handling your domains. All 3 of them are not pointing to your BIND server. So all your BIND information is useless. I had a friend who registered a domain at mydomain.com and we could not for the life of us figure out how to specify /my/ server for the nameservers and get rid of their stupid IP redirects.
 
Old 12-18-2003, 03:55 PM   #3
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Original Poster
Rep: Reputation: 30
Damn, I wasnt expecting a reply like that Thanks alot auximini, that really helps & clears a few things up for me

The only difference I can see between os-solutions.net & the other 2 domains on mydomain.com is os-solutions.net redirected to [url]http://************[url] where as the other 2 redirect to **********, ie note theres no http:// before the IP, I also noticed on the page where I set up the redirects that there was a message saying you need to include http:// before the address.
Do you think that might be the problem?? I've changed them all to redirect to http://************* now so I think I have to wait a few days to see if my changes take effect, or should this change take immediate effect?

Thanks again for your reply.

Last edited by amp2000; 01-20-2004 at 05:26 PM.
 
Old 12-18-2003, 05:44 PM   #4
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Original Poster
Rep: Reputation: 30
Update
Thanks to your detailed reply I posted on the mydomain.com forums to see what was up & the admin told me that I have an A record for os-solutions.net but the other 2 domains have url forwarding enabled & no A records.
I've now set A records for the other 2 domains & the changes should take effect in 24-48 hours
Thanks again for your help auximini
 
Old 12-19-2003, 01:00 PM   #5
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
No problem
I still have a huge grudge against mydomain.com for not allowing you to use your own nameservers with domains you registered with them. But atleast they were helpful and its working
 
  


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
setting up virtual hosting/DNS/ phatboyz Linux - Networking 6 03-16-2005 10:42 AM
RedHat 9 Virtual Hosting -- Configure DNS?? mlhammer Linux - Networking 6 09-24-2003 08:10 PM
Problems With Apache & Virtual Hosting Using Dynamic DNS moetjojo Linux - Networking 7 12-02-2002 04:51 AM
Trying to understand DNS and Virtual Hosting dsiguy Linux - Newbie 2 11-26-2002 12:40 PM
name-based virtual hosting and corresponding DNS entries roba Linux - General 0 08-14-2002 04:08 PM

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

All times are GMT -5. The time now is 08:43 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