Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Domain Question (Primary NS, Secondary NS, etc)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Thu Mar 31, 2005 1:24 pm    Post subject: [SOLVED] Domain Question (Primary NS, Secondary NS, etc) Reply with quote

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
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Thu Mar 31, 2005 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Thu Mar 31, 2005 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Thu Mar 31, 2005 4:29 pm    Post subject: Reply with quote

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. :D

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
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Thu Mar 31, 2005 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Thu Mar 31, 2005 7:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Fri Apr 01, 2005 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Fri Apr 01, 2005 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Fri Apr 01, 2005 1:07 am    Post subject: Reply with quote

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
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Fri Apr 01, 2005 11:49 am    Post subject: Reply with quote

^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
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Tue Apr 05, 2005 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Tue Apr 05, 2005 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
petlab
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 290
Location: Armpit, Oregon

PostPosted: Tue Apr 05, 2005 7:20 pm    Post subject: Reply with quote

Wish I could have helped "more." If you can, let us know what you found wrong, and mark the subject of this post [SOLVED]

:D
_________________
Get Serious - Get JAWA CZ
Back to top
View user's profile Send private message
mattjgalloway
l33t
l33t


Joined: 16 Mar 2004
Posts: 761
Location: Coventry, UK

PostPosted: Tue Apr 05, 2005 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum