Problem in the subdomain

Started by mekosaad, March 23, 2015, 11:19:02 PM

Previous topic - Next topic

mekosaad

When I create a new site on a subdomain
Works without a problem but that you do dns Restart Apache stops and gives me errors in the file named
What to solve this problem

brijendrasial

can you please paste the error here?

mekosaad

#2
When I am doing Restart for this service
BIND DNS Server
Apache stops working after deleting your dns domain of this file named.conf

Stopping named: .[  OK  ]
Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.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 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
/var/named/111111.com.db:24: file does not end with newline
zone 1111111.com/IN: NS 'free1.1111111.com' has no address records (A or AAAA)
zone 1111111.com/IN: NS 'free2.1111111.com' has no address records (A or AAAA)
zone 1111111.com/IN: not loaded due to errors.
_default/1111111.com/IN: bad zone
zone test.1111111.com/IN: loading from master file /var/named/test.1111111.com.db failed: file not found
zone test.1111111.com/IN: not loaded due to errors.
_default/test.1111111.com/IN: file not found
[FAILED]


To resolve the problem do I delete nameserver for this domain of nameserver file


// zone 111111.com
zone "111111.com" {
                                   type master;
                                        file "/var/named/111111.com.db";};
// zone_end 111111.com

// zone test.111111.com
zone "test.111111.com" {
                                   type master;
                                        file "/var/named/test.111111.com.db";};
// zone_end test.111111.com


But the location stops and give me this message
Can not open files on the server because the files permits

brijendrasial

#3
A name record is missing for your name server.

Goto DNS Functions --> Edit Name Server IP'S. Check if nameserver's are correct. If correct just press save changes. This will try to add A name record for your name servers. Now u can restart ur bind (service named restart)

Also you can manually add A name record in your DNS file.

mekosaad

Nameservers does not have mistakes




brijendrasial

I am not saying that nameserver has issue. Seems like A name record for nameserver is missing. Clicking save changes will add A name record and then you can restart bind to check if issue has gone.

mekosaad

Thank problem has been resolved