LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Having trouble setting up DNS (https://www.linuxquestions.org/questions/fedora-35/having-trouble-setting-up-dns-183128/)

Pete M 06-18-2004 02:30 AM

Hi Jason

NETWORKING=yes
HOSTNAME=ns1.tech-magic.net

Must be something to do with the way Fedora is set up, using Redhat myself, if thats the way Fedora likes it so be it but I would only use

NETWORKING=yes
HOSTNAME=tech-magic.net

As tech-magic.net is your domain ns1 is really a CNAME or alias


options {
directory "/var/named";
query-source address * port 53;
allow-query { 127.0.0.1; localhost; };
allow-recursion { 127.0.0.1; localhost; };
listen-on { 192.168.1.10; };
version "Hey that's my business!";
};

Try my way

options {
directory "/var/named";
query-source port 53;
allow-query { any; };
version "Hey that's my business!";
};


Read this post chort explains TCP and UDP much better than I can

Link

Off to work now, catch you later

Pete

bsurfin 06-18-2004 03:26 AM

My Server DID NOT like that change at all "AT FIRST" now my up to date updater is working again, So now I know what you meant about it lookin funny, how's this?
[tech1@tech-magic.net]$

I like it, it does look better ! But do I need to change the records, they'd all be alliases I think then right? or are they all A names? Or should I just leave it the heck alone for now?
I also added TCP to the allow list for port #53.

I no longer get ns1.tech-magic.net from the internet, so I try http://tech-magic.net & www.tech-magic.net

Not working quite yet.

Pete M 06-18-2004 07:08 AM

Jason getting better results from the net still not right but better, at work right now will take a look later

Pete

bsurfin 06-18-2004 08:19 AM

Sounds good to me...
Oh Yeah, and that last thing I did changing named.conf, worked really good, it is now binded to port #53 and is running really fast still...

Thanks Pete...

Pete M 06-18-2004 12:55 PM

Jason

Post your files again for me, still not working quite right, report on
ns1.tech-magic.net says it's alive but not authorative

Lets take another look at /etc/named.conf and the contents of /var/named I now this is not where your files are because of chroot but you know what I mean

Pete

bsurfin 06-18-2004 02:10 PM

## Tech Magic's /var/named/chroot/etc/named.conf file...
#

options {
directory "/var/named";
query-source port 53;
allow-query { any; };
version "Hey, that's my business!";
};

logging {
category lame-servers { null; };
};

// Root server hints
zone "." { type hint; file "named.ca"; };

// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
notify no;
};

// We are the master server for www.tech-magic.net
zone "tech-maigc.net" {
type master;
file "tech-magic.forward";
allow-query { any; };
};

zone "63.91.64.in-addr.arpa" {
type master;
file "tech-magic.rev";
allow-query { any; };
};
~
~




And here is /var/named

" Press ? for keyboard shortcuts
" Sorted by name (.bak,~,.o,.h,.info,.swp,.obj at end of list)
"= /var/named/
../
chroot/
slaves/
localhost.zone
named.ca
named.local
root.hints
~

Well I still have my fingers X'ed

catchyalater

Pete M 06-18-2004 03:09 PM

Sorry Jason buts it's the content of the files in /var/named I want to look, the actual zone files

Sorry I did'nt explain very well

Pete

bsurfin 06-18-2004 06:38 PM

As you requested, here is /var/named

[root@tech-magic root]# cd /var/named
[root@tech-magic named]# ls
chroot localhost.zone named.ca named.local root.hints slaves
[root@tech-magic named]#

and incase you were mistaken, or I was, or in either case here is the context of
/var/named/chroot/var/named/

[root@tech-magic root]# cd /var/named/chroot/var/named
[root@tech-magic named]# ls
localhost.zone named.ca named.local tech-magic.forward tech-magic.rev
[root@tech-magic named]#

I'll look forward to hearing back from you ...

Pete M 06-19-2004 02:02 PM

Hi Jason I posted this at 8:00 am UK time, but just checked back here and my post has gone must be a glitch with the forum

What I would like to see are the actual zone files such as

$TTL 86400
@ IN SOA tech-magic.net.
hostmaster.tech-magic.net. (
20040610019 ;Serial#
28800 ;Refresh
7200 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)

NS ns1.tech-magic.net.
tech-magic.net. A 64.91.63.93
localhost A 127.0.0.1
mail A 64.91.63.93
ns1 CNAME tech-magic.net.
email CNAME tech-magic.net.
www CNAME tech-magic.net.

Want to see if I can spot any errors

Pete

bsurfin 06-19-2004 03:02 PM

Here is: localhost.zone

$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS @
1D IN A 127.0.0.1
~
~



here is: named.ca


; <<>> DiG 9.2.3 <<>> @e.root-servers.net. ns
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63065
;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13

;; QUESTION SECTION:
;. IN NS

;; ANSWER SECTION:
. 518400 IN NS K.ROOT-SERVERS.NET.
. 518400 IN NS L.ROOT-SERVERS.NET.
. 518400 IN NS M.ROOT-SERVERS.NET.
. 518400 IN NS I.ROOT-SERVERS.NET.
. 518400 IN NS E.ROOT-SERVERS.NET.
. 518400 IN NS D.ROOT-SERVERS.NET.
. 518400 IN NS A.ROOT-SERVERS.NET.
. 518400 IN NS H.ROOT-SERVERS.NET.
. 518400 IN NS C.ROOT-SERVERS.NET.
. 518400 IN NS G.ROOT-SERVERS.NET.
. 518400 IN NS F.ROOT-SERVERS.NET.
. 518400 IN NS B.ROOT-SERVERS.NET.
. 518400 IN NS J.ROOT-SERVERS.NET.

;; ADDITIONAL SECTION:
K.ROOT-SERVERS.NET. 3600000 IN A 193.0.14.129
L.ROOT-SERVERS.NET. 3600000 IN A 198.32.64.12
M.ROOT-SERVERS.NET. 3600000 IN A 202.12.27.33
I.ROOT-SERVERS.NET. 3600000 IN A 192.36.148.17
E.ROOT-SERVERS.NET. 3600000 IN A 192.203.230.10
D.ROOT-SERVERS.NET. 3600000 IN A 128.8.10.90
A.ROOT-SERVERS.NET. 3600000 IN A 198.41.0.4
H.ROOT-SERVERS.NET. 3600000 IN A 128.63.2.53
C.ROOT-SERVERS.NET. 3600000 IN A 192.33.4.12
G.ROOT-SERVERS.NET. 3600000 IN A 192.112.36.4
F.ROOT-SERVERS.NET. 3600000 IN A 192.5.5.241
B.ROOT-SERVERS.NET. 3600000 IN A 192.228.79.201
J.ROOT-SERVERS.NET. 3600000 IN A 192.58.128.30

;; Query time: 106 msec
;; SERVER: 192.203.230.10#53(e.root-servers.net.)
;; WHEN: Wed Jun 16 00:11:15 2004
;; MSG SIZE rcvd: 436



Here is: named.local

$TTL 86400
@ IN SOA tech-magic.net. hostmaster.tech-magic.net. (
2004061701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum


NS ns1.tech-magic.net.

1 PTR localhost.
~

here is: tech-magic.forward

; This file is Tech Magic's /var/named/chroot/var/named/tech-magic.forward



$TTL 86400
@ IN SOA ns1.tech-magic.net. hostmaster.tech-magic.net. (
2004061701 ;Serial#
28800 ;Refresh
7200 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)



NS ns1.tech-magic.net.


tech-magic.net. A 64.91.63.93

localhost A 127.0.0.1

mail A 64.91.63.93

ns1 CNAME tech-magic.net.

email CNAME tech-magic.net.

www CNAME tech-magic.net.


here is tech-magic.rev

This file is: /var/named/chroot/var/named/tech-magic.rev

$TTL 86400
@ IN SOA ns1.tech-magic.net. hostmaster.tech-magic.net. (
2004061701 ;Serial#
28800 ;Refresh
7200 ;Refresh
604800 ;Expire
86400 ;Minimum TTL
)



NS ns1.tech-magic.net.



93 PTR tech-magic.net.

93 PTR www.tech-magic.net.

93 PTR mail.tech-magic.net.

93 PTR email.tech-magic.net.

93 PTR ns1.tech-magic.net.



Well if you think this Fedora is hopeless, just let me know and I can always install Slackware and I hav no doubt I can get that to work, the only reason I wanted to use Fedora is because I really like how it installs, and it comes with software that is nearly impossible to get onto Slackware. Also with Slackware you really have to know what you are doing, and it is not supported nearly as well as Fedora. But if I reinstall Slackware I don't think I'll be needing the GUI this time and that will just make it easier, and the one thing that is really cool about Slackware is the new Slackware Current, it can update and upgrade itself...

Pete M 06-20-2004 11:42 AM

Jason try these for size you should be able to copy and paste them

Here is /etc/named.conf

options {
directory "/var/named";
query-source port 53;
allow-query { any; };
version "Hey, that's my business!";
};

logging {
category lame-servers { null; };
};


// Root server hints
zone "." { type hint; file "named.ca"; };


// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
notify no;
};


// We are the master server for www.tech-magic.net
zone "tech-magic.net" {
type master;
file "tech-magic.forward";
allow-query { any; };
};


zone "63.91.64.in-addr.arpa" {
type master;
file "tech-magic.rev";
allow-query { any; };
};


Here is named.local

$TTL 86400
@ IN SOA localhost. hostmaster.tech-magic.net. (
2004061701 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ) ; Minimum TTL


0.0.127.in-addr.arpa. NS localhost.

1 PTR localhost.


Here is tech-magic.forward

$TTL 86400
@ IN SOA ns1.tech-magic.net. hostmaster.tech-magic.net. (
2004061701 ;Serial#
10800 ;Refresh
3600 ;Retry
604800 ;Expire
86400 ) ;Minimum TTL






tech-magic.net. IN NS ns1.tech-magic.net.


tech-magic.net. IN A 64.91.63.93

localhost IN A 127.0.0.1
mail IN A 64.91.63.93
ns1 CNAME tech-magic.net.
email CNAME tech-magic.net.
www CNAME tech-magic.net.


Here is tech-magic.rev

$TTL 86400
@ IN SOA ns1.tech-magic.net. hostmaster.tech-magic.net. (
2004061701 ;Serial#
10800 ;Refresh
3600 ;Retry
604800 ;Expire
86400 ) ;Minimum TTL



63.91.64.in-addr.arpa. IN NS ns1.tech-magic.net.

3 IN PTR tech.magic.net.
3 IN PTR mail.tech-magic.net.

Regards

Pete

bsurfin 06-21-2004 12:46 AM

Still no luck, Time to Flush Fedora all together yet ?

Pete M 06-21-2004 02:21 AM

Jason

Over the weekend I loaded those files onto my setup using my LAN IP and they worked perfectly, named started without error and I used dig to test it, gave all the right answers, It still must be something to do with your chroot enviroment as I stated earlier this is something I have no knowledge of

As for Slack again never used it so I can't really advise

Pete

bsurfin 06-21-2004 07:59 AM

I even have the book for fedora, they tell all about the chroot environment, but still don't work, it is not supposed to be any big deal.

Thanks for all the help, I'll load Slack later in July, I'm out of time right now, I'll be busy for the next few weeks...


All times are GMT -5. The time now is 08:41 PM.