Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-28-2003, 11:15 AM
|
#1
|
Member
Registered: Feb 2003
Location: alabama
Posts: 45
Rep:
|
try to make a DNS server
Hi well im running into problems making a DNS server. I am trying to run 2 domains off 1 ip, well i duno where my problem is. But here is my config files.
---------------
named.conf
---------------
options {
directory "/var/named";
query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "dilluted.org" {
type master;
file "dilluted.org";
};
{
---------------
dilluted.org
---------------
$ttl 38400
dilluted.org. IN SOA ns.dilluted.org. oosupermanoo@cableone.net. (
1027094177
10800
3600
604800
38400 )
dilluted.org. IN NS ns.dilluted.org.
dilluted.org. IN A my ip
www.dilluted.org. IN A my ip
ftp.dilluted.org. IN A my ip
www.infliction.net. IN A my ip
i have the rest of the files also if you need to see those. NS. DILLUTD.ORG works but when you go to either dilluted.org or infliction.net neither one of them work. I have also set up the VHOST in Apache. Thank you.
Flaw1EsS
Last edited by Flawless; 08-28-2003 at 11:16 AM.
|
|
|
08-28-2003, 02:47 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
My example zone file:
Quote:
$TTL 3D
@ IN SOA mydomain. hostmaster.mydomain. (
200207181 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
MX 10 mail.mydomain. ; Primary Mail Exchanger
;
localhost A 127.0.0.1
mydomain. A xxx.xxx.xxx.xxx
ns CNAME mydomain.
mail CNAME mydomain.
www CNAME mydomain.
ftp CNAME mydomain.
|
For your second domain you need another entry in named.conf and new zone file (can be exactly the same as the first one, with only a different domain).
Last edited by Mara; 08-30-2003 at 05:16 PM.
|
|
|
08-29-2003, 11:32 AM
|
#3
|
Member
Registered: Feb 2003
Location: alabama
Posts: 45
Original Poster
Rep:
|
Aug 29 11:32:39 expo named[523]: loading configuration from '/etc/named.conf'
Aug 29 11:32:39 expo named[523]: no IPv6 interfaces found
Aug 29 11:32:41 expo named[4323]: starting BIND 9.2.2
Aug 29 11:32:41 expo named[4323]: using 1 CPU
Aug 29 11:32:41 expo named[4323]: loading configuration from '/etc/named.conf'
Aug 29 11:32:41 expo named[4323]: no IPv6 interfaces found
Aug 29 11:32:41 expo named[4323]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 29 11:32:41 expo named[4323]: listening on IPv4 interface eth0, 192.168.0.5#
53
Aug 29 11:32:41 expo named[4323]: couldn't add command channel 127.0.0.1#953: ad
dress in use
Aug 29 11:32:41 expo named[4323]: zone 0.0.127.in-addr.arpa/IN: loaded serial 19
97022700
Aug 29 11:32:41 expo named[4323]: zone localhost/IN: loaded serial 42
Aug 29 11:32:41 expo named[4323]: running
this is in the message log but it still not working....?
|
|
|
08-30-2003, 05:17 PM
|
#4
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
What happens when you try to run 'dig yourdomain' at your DNS server machine?
|
|
|
08-30-2003, 11:21 PM
|
#5
|
Member
Registered: Feb 2003
Location: alabama
Posts: 45
Original Poster
Rep:
|
root@expo:/var/named# dig dilluted.org
; <<>> DiG 9.2.2 <<>> dilluted.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25447
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;dilluted.org. IN A
;; ANSWER SECTION:
dilluted.org. 38400 IN A 24.117.62.255
;; AUTHORITY SECTION:
dilluted.org. 38400 IN NS ns.dilluted.org.
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Aug 30 23:24:07 2003
;; MSG SIZE rcvd: 63
|
|
|
08-31-2003, 03:05 PM
|
#6
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
It looks that it works. To ask your own server use 'dig @localhost yourdomain' (from server). Try also with something like 'ns.yourdomain', ftp.yourdomain (if you have it in the zone file). The answers should be similar - have data in 'ANSWER' section.
|
|
|
09-02-2003, 12:50 PM
|
#7
|
Member
Registered: Feb 2003
Location: alabama
Posts: 45
Original Poster
Rep:
|
; <<>> DiG 9.2.2 <<>> dilluted.org @localhost
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6579
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;dilluted.org. IN A
;; ANSWER SECTION:
dilluted.org. 38400 IN A 24.117.62.255
;; AUTHORITY SECTION:
dilluted.org. 38400 IN NS ns.dilluted.org.
;; Query time: 103 msec
;; SERVER: 127.0.0.1#53(localhost)
;; WHEN: Tue Sep 2 12:52:32 2003
;; MSG SIZE rcvd: 63
|
|
|
09-03-2003, 03:01 PM
|
#8
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
It all looks correctly. Everything should work now. Does it?
|
|
|
09-03-2003, 04:22 PM
|
#9
|
Member
Registered: Feb 2003
Location: alabama
Posts: 45
Original Poster
Rep:
|
no i think it could be with the registrar....i think it has to be because everything is configured correctly on my box. Could you think of anything else?
|
|
|
09-04-2003, 04:17 PM
|
#10
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Probably registration problems. Try one thing: set your DNS Ip as one of your machines' primary DNS. Everything should work nicely. If it does, ask your registrar.
|
|
|
All times are GMT -5. The time now is 05:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|