LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-30-2007, 11:14 PM   #16
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15

I have done like this is it ok.I have registered my domain in godaddy.com.whether i have to buy a nameserver. i have changed in the nameserver field to ns1.indyablog.com.Plz dont mistake me as im keep on asking questions.


servername indyablog.com
NameVirtualHost *:80


<VirtualHost *:80>
# ServerAdmin mani@mail.indyablog.com
ServerName www.indyablog.com
# DocumentRoot /home/site
# ServerName indyacricket.com
ErrorLog logs/bigboy.indyablog.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


<VirtualHost *:80>
# ServerAdmin mani@mail.indyablog.com
DocumentRoot /var/www/html/squirrelmail-1.4.13
ServerName mail.indyablog.com
ErrorLog logs/bigboy.indyablog.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
 
Old 12-30-2007, 11:18 PM   #17
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Read what I posted back in reply number 13. You do not have things set up well, and it isn't a DNS problem anymore, it is the way you did the virtual hosts.

Peace,
JimBass
 
Old 12-30-2007, 11:31 PM   #18
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Dear Jim
Dont mistake me as if im keep on asking questions.Im in a pressure to finish this job.
I need to run my mail server first.I dont want 2 virtual server,later i will work on it.For that how to configure Http file. I have register my domain in godaddy.com. i have changed my nameserver to ns1.indyablog.com. Whether i hav to buy a own name server since i simply changed to ns1.indyablog.com. or by buying the domain itself they will provide us a nameserver i dunno.tell me.
Thanks
 
Old 12-30-2007, 11:45 PM   #19
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Dude, you're not listening to me.

The DNS is set up fine, as evidenced by this:

Code:
jim@jimsworktop:~$ dig ns1.indyablog.com +trace

; <<>> DiG 9.4.2 <<>> ns1.indyablog.com +trace
;; global options:  printcmd
.                       351236  IN      NS      g.root-servers.net.
.                       351236  IN      NS      c.root-servers.net.
.                       351236  IN      NS      m.root-servers.net.
.                       351236  IN      NS      k.root-servers.net.
.                       351236  IN      NS      j.root-servers.net.
.                       351236  IN      NS      b.root-servers.net.
.                       351236  IN      NS      i.root-servers.net.
.                       351236  IN      NS      h.root-servers.net.
.                       351236  IN      NS      e.root-servers.net.
.                       351236  IN      NS      d.root-servers.net.
.                       351236  IN      NS      f.root-servers.net.
.                       351236  IN      NS      a.root-servers.net.
.                       351236  IN      NS      l.root-servers.net.
;; Received 388 bytes from 192.168.68.103#53(192.168.68.103) in 3 ms

com.                    172800  IN      NS      a.gtld-servers.net.
com.                    172800  IN      NS      b.gtld-servers.net.
com.                    172800  IN      NS      c.gtld-servers.net.
com.                    172800  IN      NS      d.gtld-servers.net.
com.                    172800  IN      NS      e.gtld-servers.net.
com.                    172800  IN      NS      f.gtld-servers.net.
com.                    172800  IN      NS      g.gtld-servers.net.
com.                    172800  IN      NS      h.gtld-servers.net.
com.                    172800  IN      NS      i.gtld-servers.net.
com.                    172800  IN      NS      j.gtld-servers.net.
com.                    172800  IN      NS      k.gtld-servers.net.
com.                    172800  IN      NS      l.gtld-servers.net.
com.                    172800  IN      NS      m.gtld-servers.net.
;; Received 495 bytes from 199.7.83.42#53(l.root-servers.net) in 92 ms

ns1.indyablog.com.      172800  IN      A       220.227.28.84
indyablog.com.          172800  IN      NS      ns1.indyablog.com.
indyablog.com.          172800  IN      NS      ns2.indyablog.com.
;; Received 115 bytes from 192.41.162.30#53(l.gtld-servers.net) in 21 ms

jim@jimsworktop:~$ dig ns2.indyablog.com +trace

; <<>> DiG 9.4.2 <<>> ns2.indyablog.com +trace
;; global options:  printcmd
.                       351228  IN      NS      m.root-servers.net.
.                       351228  IN      NS      a.root-servers.net.
.                       351228  IN      NS      e.root-servers.net.
.                       351228  IN      NS      g.root-servers.net.
.                       351228  IN      NS      l.root-servers.net.
.                       351228  IN      NS      f.root-servers.net.
.                       351228  IN      NS      c.root-servers.net.
.                       351228  IN      NS      j.root-servers.net.
.                       351228  IN      NS      k.root-servers.net.
.                       351228  IN      NS      d.root-servers.net.
.                       351228  IN      NS      i.root-servers.net.
.                       351228  IN      NS      h.root-servers.net.
.                       351228  IN      NS      b.root-servers.net.
;; Received 388 bytes from 192.168.68.103#53(192.168.68.103) in 2 ms

com.                    172800  IN      NS      a.gtld-servers.net.
com.                    172800  IN      NS      b.gtld-servers.net.
com.                    172800  IN      NS      c.gtld-servers.net.
com.                    172800  IN      NS      d.gtld-servers.net.
com.                    172800  IN      NS      e.gtld-servers.net.
com.                    172800  IN      NS      f.gtld-servers.net.
com.                    172800  IN      NS      g.gtld-servers.net.
com.                    172800  IN      NS      h.gtld-servers.net.
com.                    172800  IN      NS      i.gtld-servers.net.
com.                    172800  IN      NS      j.gtld-servers.net.
com.                    172800  IN      NS      k.gtld-servers.net.
com.                    172800  IN      NS      l.gtld-servers.net.
com.                    172800  IN      NS      m.gtld-servers.net.
;; Received 495 bytes from 193.0.14.129#53(k.root-servers.net) in 87 ms

ns2.indyablog.com.      172800  IN      A       220.227.28.84
indyablog.com.          172800  IN      NS      ns1.indyablog.com.
indyablog.com.          172800  IN      NS      ns2.indyablog.com.
;; Received 115 bytes from 192.52.178.30#53(k.gtld-servers.net) in 109 ms
That means godaddy has the correct info about the IP address of your server. Now you aren't giving out answers, so your DNS config is either not running, or misconfigured:

Code:
jim@jimsworktop:~$ dig indyablog.com @220.227.28.84

; <<>> DiG 9.4.2 <<>> indyablog.com @220.227.28.84
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 43065
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;indyablog.com.                 IN      A

;; Query time: 313 msec
;; SERVER: 220.227.28.84#53(220.227.28.84)
;; WHEN: Mon Dec 31 00:40:27 2007
;; MSG SIZE  rcvd: 31
As to the website, there is no problem with running virtual servers. Most people do. But I have been telling you since post 13 what is wrong, and you don't bother to read it. You asked for an explanation, and I provided it, yet you still didn't set it up like I told you. I am through helping you. Since you think you are in a hurry, I suggest you seek out somebody with a higher skill level than you have at present, and pay them to set things up for you.

Peace,
JimBass
 
Old 12-31-2007, 12:07 AM   #20
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Sorry Jim,

Here is my zone file i hav configured as u told me,

Forward:
------------

$TTL 86400
@ IN SOA ns1.indyablog.com. root.ns1.indyablog.com. (
2007123100 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS ns1.indyablog.com.
IN NS ns2.indyablog.com.
IN MX 10 mail.indyablog.com.

IN A 220.227.28.84

ns1 IN A 220.227.28.84
ns2 IN A 220.227.28.84
mail IN A 220.227.28.84
bigboy IN A 220.227.28.84
 
Old 12-31-2007, 12:10 AM   #21
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
I have added this one too

$ORIGIN indyablog.com.
 
Old 12-31-2007, 12:16 AM   #22
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Dont mistake me, i wont be in a hurry.u tell me i will do that.
 
Old 12-31-2007, 12:42 AM   #23
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Jim i didnt understand wat u mean by post 13 thats y im not able to do?
 
Old 12-31-2007, 01:35 AM   #24
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Jim Plz help me
 
Old 12-31-2007, 07:14 AM   #25
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
As others have pointed out... your name server does not understand that it is the SOA for indyablog.com. Thus, its not going to return any answers for indyablog.com. This is no doubt a configuration problem with your zone file -or- you are not loading the zone in named.conf.

Long pause....
Did you know your name server is answering DNS requests for other domain names. This problem should be fixed as well in named.conf -once- you resolve the SOA problem for indyablog.com. e.g. recursion settings.

Suggestion:

Use command "named-checkzone" to test your zone file changes. I had to make some simple changes to your zone file to get the zone to load properly. hint: indentations <tab> for continuation lines from SOA entry.

Also, don't let the following side-track your efforts in fixing the above problems first... but since you are going to admin a public name server, I would strongly suggest that you secure your configuration using the following template. This is the template I use for all my name servers configurations.

http://www.cymru.com/Documents/secur...-template.html
 
Old 12-31-2007, 02:06 PM   #26
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
scowles,

The thing is the names are resolving,but if u type www.mail.indyablog.com in ur browser it wont display anything.You add 202.138.96.3 in your alternated DNS section and try to browse www.mail.indyablog.com.it will work. i dunno y is it so?
 
Old 12-31-2007, 04:19 PM   #27
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
Originally Posted by bikebefast View Post
scowles,

The thing is the names are resolving,but if u type www.mail.indyablog.com in ur browser it wont display anything.You add 202.138.96.3 in your alternated DNS section and try to browse www.mail.indyablog.com.it will work. i dunno y is it so?
Your domain registration is currently pointed to your name server at 220.227.28.84. But 202.138.96.3 is answering authoritatively for indyablog.com. Another oddity is when you query this server, it says 202.138.96.2 is the correct IP address. You really need to work out what DNS server(s) will be the start of authority for your domain. Do not pass go, do not collect $200.00. GET THIS WORKED OUT!!!!

Also, if you are in such a hurry, then why don't you just change your domain registration to use the other DNS servers (see below). They are at least answering correctly.

Code:
[scowles@excelsior ~]$ dig @202.138.96.2 indyablog.com soa

; <<>> DiG 9.3.4 <<>> @202.138.96.2 indyablog.com soa
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51695
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;indyablog.com.                 IN      SOA

;; ANSWER SECTION:
indyablog.com.          86400   IN      SOA     murnsp001.rilinfo.net.
 hostmaster.rilinfo.net. 2007122725 28800 7200 604800 86400

;; AUTHORITY SECTION:
indyablog.com.          86400   IN      NS      ns2.rilinfo.net.
indyablog.com.          86400   IN      NS      ns1.rilinfo.net.

;; ADDITIONAL SECTION:
ns1.rilinfo.net.        86400   IN      A       202.138.96.2
ns2.rilinfo.net.        86400   IN      A       202.138.103.100

;; Query time: 283 msec
;; SERVER: 202.138.96.2#53(202.138.96.2)
;; WHEN: Mon Dec 31 15:50:46 2007
;; MSG SIZE  rcvd: 167

[scowles@excelsior ~]$ dig @202.138.103.100 indyablog.com soa

; <<>> DiG 9.3.4 <<>> @202.138.103.100 indyablog.com soa
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13093
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;indyablog.com.                 IN      SOA

;; ANSWER SECTION:
indyablog.com.          86400   IN      SOA     murnsp001.rilinfo.net. 
hostmaster.rilinfo.net. 2007122725 28800 7200 604800 86400

;; AUTHORITY SECTION:
indyablog.com.          86400   IN      NS      ns2.rilinfo.net.
indyablog.com.          86400   IN      NS      ns1.rilinfo.net.

;; ADDITIONAL SECTION:
ns1.rilinfo.net.        86400   IN      A       202.138.96.2
ns2.rilinfo.net.        86400   IN      A       202.138.103.100

;; Query time: 300 msec
;; SERVER: 202.138.103.100#53(202.138.103.100)
;; WHEN: Mon Dec 31 15:53:25 2007
;; MSG SIZE  rcvd: 167

[scowles@excelsior ~]$ dig @202.138.96.3 mail.indyablog.com a

; <<>> DiG 9.3.4 <<>> @202.138.96.3 mail.indyablog.com a
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1244
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;mail.indyablog.com.            IN      A

;; ANSWER SECTION:
mail.indyablog.com.     86400   IN      A       220.227.28.84

;; AUTHORITY SECTION:
indyablog.com.          86400   IN      NS      ns2.rilinfo.net.
indyablog.com.          86400   IN      NS      ns1.rilinfo.net.

;; ADDITIONAL SECTION:
ns1.rilinfo.net.        86400   IN      A       202.138.96.2
ns2.rilinfo.net.        86400   IN      A       202.138.103.100

;; Query time: 284 msec
;; SERVER: 202.138.96.3#53(202.138.96.3)
;; WHEN: Mon Dec 31 16:06:22 2007
;; MSG SIZE  rcvd: 131

[scowles@excelsior ~]$ dig @202.138.96.3 indyablog.com MX

; <<>> DiG 9.3.4 <<>> @202.138.96.3 indyablog.com MX
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4982
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;indyablog.com.                 IN      MX

;; ANSWER SECTION:
indyablog.com.          86400   IN      MX      10 mail.indyablog.com.

;; AUTHORITY SECTION:
indyablog.com.          86400   IN      NS      ns2.rilinfo.net.
indyablog.com.          86400   IN      NS      ns1.rilinfo.net.

;; ADDITIONAL SECTION:
mail.indyablog.com.     86400   IN      A       220.227.28.84
ns1.rilinfo.net.        86400   IN      A       202.138.96.2
ns2.rilinfo.net.        86400   IN      A       202.138.103.100

;; Query time: 283 msec
;; SERVER: 202.138.96.3#53(202.138.96.3)
;; WHEN: Mon Dec 31 16:06:32 2007
;; MSG SIZE  rcvd: 147


#### www.mail.indyablog.com is not working NXDOMAIN ####
[scowles@excelsior ~]$ dig @202.138.96.3 www.mail.indyablog.com a

; <<>> DiG 9.3.4 <<>> @202.138.96.3 www.mail.indyablog.com a
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 42753
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;www.mail.indyablog.com.                IN      A

;; AUTHORITY SECTION:
indyablog.com.          86400   IN      SOA     murnsp001.rilinfo.net.
 hostmaster.rilinfo.net. 2007122725 28800 7200 604800 86400

;; Query time: 283 msec
;; SERVER: 202.138.96.3#53(202.138.96.3)
;; WHEN: Mon Dec 31 15:59:24 2007
;; MSG SIZE  rcvd: 108
BTW: www.mail.indyablog.com would require you to configure a sub-domain (mail.indablog.com) with its own start of authority delegation records and zone files. Are you sure this is how you want to reference your website?
 
Old 01-01-2008, 03:03 AM   #28
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks.Thats the thing my ril.info is answering now.

1}How can i put a subdomain entry or else can i configure only mail.indyablog.com by deleting indyablog.com


How to create a subdomain with its own start of authority
 
Old 01-01-2008, 10:35 AM   #29
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
In the etc/resolv.conf file;

i have added my ISP dns address like

search indyablog.com
search mail.indyablog.com
nameserver 202.138.96.2
nameserver 202.138.103.100


what shall i do?if i remove the DNS means how can i browse internet in my localpc.
 
Old 01-03-2008, 12:12 AM   #30
bikebefast
LQ Newbie
 
Registered: Dec 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Here is my /var/log/messages

Jan 3 11:23:38 mail named[4325]: starting BIND 9.2.4 -u named -t /var/named/chroot
Jan 3 11:23:38 mail named[4325]: using 1 CPU
Jan 3 11:23:38 mail named: named startup succeeded
Jan 3 11:23:38 mail named[4325]: loading configuration from '/etc/named.conf'
Jan 3 11:23:38 mail named[4325]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 3 11:23:38 mail named[4325]: listening on IPv4 interface eth0, 192.168.1.231#53
Jan 3 11:23:38 mail named[4325]: command channel listening on 127.0.0.1#953
Jan 3 11:23:38 mail named[4325]: zone 0.in-addr.arpa/IN: loaded serial 42
Jan 3 11:23:38 mail named[4325]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2008030101
Jan 3 11:23:38 mail named[4325]: zone 255.in-addr.arpa/IN: loaded serial 42
Jan 3 11:23:38 mail named[4325]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
Jan 3 11:23:38 mail named[4325]: zone mail.indyablog.com/IN: loaded serial 2008010201
Jan 3 11:23:38 mail named[4325]: zone localdomain/IN: loaded serial 42
Jan 3 11:23:38 mail named[4325]: running
Jan 3 11:23:38 mail named[4325]: zone 1.168.192.in-addr.arpa/IN: sending notifies (serial 2008030101)
Jan 3 11:23:38 mail named[4325]: zone mail.indyablog.com/IN: sending notifies (serial 2008010201)
Jan 3 11:23:39 mail named[4325]: lame server resolving 'ns2.indyablog.com' (in 'indyablog.com'?): 220.227.28.84#53
Jan 3 11:23:39 mail named[4325]: lame server resolving 'ns2.indyablog.com' (in 'indyablog.com'?): 220.227.28.84#53
Jan 3 11:24:38 mail named[4325]: received notify for zone '1.168.192.in-addr.arpa'
Jan 3 11:24:39 mail named[4325]: received notify for zone 'mail.indyablog.com'
 
  


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
Query regarding DNS saini_mw Linux - Software 4 09-14-2009 12:29 PM
DNS query sanw2k Linux - Networking 1 03-11-2005 11:31 PM
DNS query chynna_v Linux - Newbie 1 09-15-2004 04:57 AM
DNS query for all Domains dominant Linux - Networking 2 04-05-2004 11:24 AM
DNS Query Attack?? Manuel-H Linux - General 0 04-06-2003 09:00 PM

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

All times are GMT -5. The time now is 03:09 PM.

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