View previous topic :: View next topic |
Author |
Message |
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Thu Mar 31, 2005 1:24 pm Post subject: [SOLVED] Domain Question (Primary NS, Secondary NS, etc) |
|
|
Hey,
So I just finished setting up a server for my home network - DHCP, DNS, portage rsync, portage distfiles cache, etc, etc. It's good! Except qmail is having problems and it seems to be because I've set the domain of the network to be something which couldn't be on the internet (galloway.home). Qmail is saying that the remote host isn't liking this. So I've now decided to get a domain.
Now I need to know what to set my primary and secondary DNS servers to...
I'm guessing the primary is the IP address of my gentoo server box right? Secondary - I've gone and got an account with easydns.net (free ofcourse ) which I don't really know what I'm doing with!
So I've now got to change over all the stuff to my new domain name and make sure it all works!!! Any tips on remembering the things I need to change over?
But yeh, my main query is what do I put for the primary and secondary NS!?
Cheers! _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard
Last edited by mattjgalloway on Tue Apr 05, 2005 7:18 pm; edited 1 time in total |
|
Back to top |
|
|
petlab Apprentice
Joined: 03 May 2004 Posts: 290 Location: Armpit, Oregon
|
Posted: Thu Mar 31, 2005 2:50 pm Post subject: |
|
|
I just put the same ip address for both nameservers. I had ns1.domain.tld and ns2.domain.tld with the same ip address and it worked. I use GoDaddy.com. _________________ Get Serious - Get JAWA CZ |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Thu Mar 31, 2005 4:15 pm Post subject: |
|
|
Hmmm ok cool. And you pointed it to ns1.domain.tld which resolves to the IP address of your server box right? I know how to do it for like webservers where it's all been setup, but I'm talking about doing it so that my new domain resolves to my gentoo server box... _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
petlab Apprentice
Joined: 03 May 2004 Posts: 290 Location: Armpit, Oregon
|
Posted: Thu Mar 31, 2005 4:29 pm Post subject: |
|
|
Yes. Your box is "the nameserver." Your box serves its own names. I couldn't figure all this out for the longest time. We need some kind of more documentation for this. The Gentoo install guide is not this detailed.
I figured out how to do all this name stuff from a howto on gentoo-wiki about hostname.
I also learned that the order of the names for your computer in /etc/hosts is important. _________________ Get Serious - Get JAWA CZ |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Thu Mar 31, 2005 4:52 pm Post subject: |
|
|
Ah ok cool.
Now what's this about MX records and CNAME stuff? I'm REALLY confused about all that!
How do I make it so that www.mydomain.com gets sent to server1.mydomain.com:80 ? _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
petlab Apprentice
Joined: 03 May 2004 Posts: 290 Location: Armpit, Oregon
|
Posted: Thu Mar 31, 2005 7:23 pm Post subject: |
|
|
Okay, it's like this:
An mx record tells "mail exchange" programs which ip address handles mail for domain.tld.
Oh, first, what prog are you using for dns?? _________________ Get Serious - Get JAWA CZ |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Fri Apr 01, 2005 12:42 am Post subject: |
|
|
I'm currently using dnsmasq but am trying to get djbdns setup! You got any tips for this!?!?! I've followed some guides but all I get is a dnscache service running but my clients can't resolve anything - I think I need tinydns right? I'm confused?! Could you chat to me on AIM/ICQ/MSN about it you think? _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
petlab Apprentice
Joined: 03 May 2004 Posts: 290 Location: Armpit, Oregon
|
Posted: Fri Apr 01, 2005 12:52 am Post subject: |
|
|
I would, but I just dont do the chat thing. I have djbdns set up. I have dnscache inside, and tinydns outside. I can help you set it up. I have started from the beginning on this very task, and I almost own it now. Bear with me, I can't finish this till tomorrow.
BTW, I really suggest djbdns. Please post your network setup. Do you have a modem that connects right to the main computer, or what. How many IP addresses, network cards in the main machine, that kind of thing.
We will GET THINGS GOING! _________________ Get Serious - Get JAWA CZ |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Fri Apr 01, 2005 1:07 am Post subject: |
|
|
You the man!
Ok I'm going to bed after I finish this post - 2 in the morning - zzzzzzzz...
But yeh, this is my setup:
[ The Internet ]
[ ADSL Modem - currently dynamic IP but soon to be static ]
[ server1.9knollcroft.co.uk - eth0:192.168.0.1 , eth1:10.0.0.1 (this is straight to the adsl modem and the modem is forwarding all ports to server1) ]
[ Internal LAN on 192.168.0.0/24 ]
I've kinda got dnscache working, but not really.... it runs..... it just doesn't resolve domain names for me!!! Grrrr!
Any tips will be MUCH MUCH MUCH appreciated! You the man _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Fri Apr 01, 2005 11:49 am Post subject: |
|
|
^bump^ (So that petlab sees it - mate if you can help me to get this running i seriously owe you a pint!) _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
petlab Apprentice
Joined: 03 May 2004 Posts: 290 Location: Armpit, Oregon
|
Posted: Tue Apr 05, 2005 5:56 pm Post subject: |
|
|
Sorry - I was away.
Okay, here is the way my directories are set up:
/service - a real directory, with symlinks in it.
/var - a real directory, with directories and stuff in it.
/service/dnscache_127.0.0.1 --> symlink to /var/dnscache/127.0.0.1
/service/rootdns_127.53.0.1 --> symlink to /var/rootdns/127.53.0.1/
/service/tinydns_myserverip --> symlink to /var/tinydns/myserverip
/service/axfrdns_myserverip --> symlink to /var/axfrdns/myserverip
You said dnscache won't resolve domain names. Well, if it is working, make sure you also have rootdns set up. My /etc/resolv.conf says:
Code: | Binary file /etc/resolv.conf matches
domain mydomain.tld |
Check this and ask me some more questions. Remember to check operation with these tools:
Code: | # dnsq a domain.tld yourserverip (sees if your tinydns is working)
# dnsqr a domain.tld (checks if your dnscache/rootdns is working)
|
_________________ Get Serious - Get JAWA CZ |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Tue Apr 05, 2005 7:18 pm Post subject: |
|
|
Hey,
Cheers for the help - I've finally sorted it out and it's all working fine! Yay! I'm moving over to static IP in the next few days aswell which is even better! COOL!
Again, many thanks for all your help! _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
petlab Apprentice
Joined: 03 May 2004 Posts: 290 Location: Armpit, Oregon
|
Posted: Tue Apr 05, 2005 7:20 pm Post subject: |
|
|
Wish I could have helped "more." If you can, let us know what you found wrong, and mark the subject of this post [SOLVED]
_________________ Get Serious - Get JAWA CZ |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Tue Apr 05, 2005 7:25 pm Post subject: |
|
|
Yeh sure - done the marking as [SOLVED] just after my last post.
As for what was wrong:
I didn't have tinydns setup so I thought dnscache was going to be doing everything. But as it happened all I needed to do was to setup tinydns twice - one for public, one for private DNS and then setup dnscache to link between the two. I also setup axfrdns so that everydns.net can get to my records. I might actually write a HOWTO on this because I found it really daunting and I didn't have a clue what to do - I had to read so much to get this far, but now I'm here i'm very pleased with Gentoo's way of doing things! Just another reason I love Gentoo!!! _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
|