Cannot bind a local domain name to my system

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have added a new zone to /etc/named.conf as follows:



zone "mysite.local" IN 
type master;
file "mysite.local.zone";
allow-update none; ;
;


Also, the zone file is as follows:



;File name: mysite.local.zone

$TTL 604800
@ IN SOA ns1.mysite.local. admin.mysite.local. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
; name servers - NS records
IN NS ns1.mysite.local.
; IN NS ns2.nyc3.example.com.

; name servers - A records
ns1.mysite.local. IN A 192.168.6.30
;ns2.nyc3.example.com. IN A 10.128.20.12

; 10.128.0.0/16 - A records
;host1.mysite_local.com. IN A 10.128.100.101
;host2.nyc3.example.com. IN A 10.128.200.102


The named service starts without a problem, but the system cannot resolve mysite.local when I check with nslookup and ping



Also, I cannot access via browser the domain name that I have created as a VirtualHost in httpd.conf as follows:



<VirtualHost 127.0.0.1:80>
ServerName mysite.local
ServerAlias www.mysite.local
DocumentRoot "/var/www/html"
SetEnv APPLICATION_ENV "development"
<Directory "/var/www/html/public_html">
DirectoryIndex index.php
Order allow,deny
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


Finally, this is my ifcfg-eno1 file:



TYPE=Ethernet
BOOTPROTO=static
NAME=eno1
DEVICE=eno1
UUID=9a375715-f0d7-3fa8-8494-6a5d10946f16
ONBOOT=yes
DEVICE=eno1
IPADDR=192.168.6.30
NETMASK=255.255.255.0
GATEWAY=192.168.6.1
PREFIX=24
DNS1=192.168.6.30
DNS2=8.8.8.8
DEFROUTE=yes


I have spent a lot of time on this with no success. I have done this before on a VPS server with static IP and it worked, but on my local network it does not. Could someone tell me where I am messing things up?







share|improve this question



















  • Where are you trying to resolve mysite.local from? Does your /etc/resolv.conf include nameserver IP_of_your_dns_server ? Are you using NetworkManager ? If not, try to use NM_CONTROLLED=no in your ifcfg-eno1 file. Restart the network
    – Valentin B
    Jul 4 at 11:28










  • Valentin, resolv.conf includes both dns server IPs. I added NM_CONTROLLED=no but still cannot resolve mysite.local.
    – JasonStack
    Jul 4 at 11:49










  • Jason, please tell the audience from what host you are trying to ping. and where. provide some more details. What do the logs on the dns server tell you?
    – Valentin B
    Jul 4 at 12:07







  • 2




    It is not recommended to use .local as your network's domain name, because it is used by mDNS.
    – Johan Myréen
    Jul 4 at 14:24






  • 1




    Is 192.168.6.30 a recursive or authoritative nameserver? It seems to be both and this is bad, you need to split both roles. Also using as recursive first an internal one and second an external one will both fail to provide you with the service you think it should provide (second nameserver will never be queried until the first one stops to reply at all) and also open you to vulnerabilities as this may leak internal queries outside against your will. Also ping is not a DNS troubleshooting tool, and when you use dig always specify the nameserver you query to have meaningful replies
    – Patrick Mevzek
    Jul 7 at 21:54














up vote
0
down vote

favorite












I have added a new zone to /etc/named.conf as follows:



zone "mysite.local" IN 
type master;
file "mysite.local.zone";
allow-update none; ;
;


Also, the zone file is as follows:



;File name: mysite.local.zone

$TTL 604800
@ IN SOA ns1.mysite.local. admin.mysite.local. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
; name servers - NS records
IN NS ns1.mysite.local.
; IN NS ns2.nyc3.example.com.

; name servers - A records
ns1.mysite.local. IN A 192.168.6.30
;ns2.nyc3.example.com. IN A 10.128.20.12

; 10.128.0.0/16 - A records
;host1.mysite_local.com. IN A 10.128.100.101
;host2.nyc3.example.com. IN A 10.128.200.102


The named service starts without a problem, but the system cannot resolve mysite.local when I check with nslookup and ping



Also, I cannot access via browser the domain name that I have created as a VirtualHost in httpd.conf as follows:



<VirtualHost 127.0.0.1:80>
ServerName mysite.local
ServerAlias www.mysite.local
DocumentRoot "/var/www/html"
SetEnv APPLICATION_ENV "development"
<Directory "/var/www/html/public_html">
DirectoryIndex index.php
Order allow,deny
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


Finally, this is my ifcfg-eno1 file:



TYPE=Ethernet
BOOTPROTO=static
NAME=eno1
DEVICE=eno1
UUID=9a375715-f0d7-3fa8-8494-6a5d10946f16
ONBOOT=yes
DEVICE=eno1
IPADDR=192.168.6.30
NETMASK=255.255.255.0
GATEWAY=192.168.6.1
PREFIX=24
DNS1=192.168.6.30
DNS2=8.8.8.8
DEFROUTE=yes


I have spent a lot of time on this with no success. I have done this before on a VPS server with static IP and it worked, but on my local network it does not. Could someone tell me where I am messing things up?







share|improve this question



















  • Where are you trying to resolve mysite.local from? Does your /etc/resolv.conf include nameserver IP_of_your_dns_server ? Are you using NetworkManager ? If not, try to use NM_CONTROLLED=no in your ifcfg-eno1 file. Restart the network
    – Valentin B
    Jul 4 at 11:28










  • Valentin, resolv.conf includes both dns server IPs. I added NM_CONTROLLED=no but still cannot resolve mysite.local.
    – JasonStack
    Jul 4 at 11:49










  • Jason, please tell the audience from what host you are trying to ping. and where. provide some more details. What do the logs on the dns server tell you?
    – Valentin B
    Jul 4 at 12:07







  • 2




    It is not recommended to use .local as your network's domain name, because it is used by mDNS.
    – Johan Myréen
    Jul 4 at 14:24






  • 1




    Is 192.168.6.30 a recursive or authoritative nameserver? It seems to be both and this is bad, you need to split both roles. Also using as recursive first an internal one and second an external one will both fail to provide you with the service you think it should provide (second nameserver will never be queried until the first one stops to reply at all) and also open you to vulnerabilities as this may leak internal queries outside against your will. Also ping is not a DNS troubleshooting tool, and when you use dig always specify the nameserver you query to have meaningful replies
    – Patrick Mevzek
    Jul 7 at 21:54












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have added a new zone to /etc/named.conf as follows:



zone "mysite.local" IN 
type master;
file "mysite.local.zone";
allow-update none; ;
;


Also, the zone file is as follows:



;File name: mysite.local.zone

$TTL 604800
@ IN SOA ns1.mysite.local. admin.mysite.local. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
; name servers - NS records
IN NS ns1.mysite.local.
; IN NS ns2.nyc3.example.com.

; name servers - A records
ns1.mysite.local. IN A 192.168.6.30
;ns2.nyc3.example.com. IN A 10.128.20.12

; 10.128.0.0/16 - A records
;host1.mysite_local.com. IN A 10.128.100.101
;host2.nyc3.example.com. IN A 10.128.200.102


The named service starts without a problem, but the system cannot resolve mysite.local when I check with nslookup and ping



Also, I cannot access via browser the domain name that I have created as a VirtualHost in httpd.conf as follows:



<VirtualHost 127.0.0.1:80>
ServerName mysite.local
ServerAlias www.mysite.local
DocumentRoot "/var/www/html"
SetEnv APPLICATION_ENV "development"
<Directory "/var/www/html/public_html">
DirectoryIndex index.php
Order allow,deny
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


Finally, this is my ifcfg-eno1 file:



TYPE=Ethernet
BOOTPROTO=static
NAME=eno1
DEVICE=eno1
UUID=9a375715-f0d7-3fa8-8494-6a5d10946f16
ONBOOT=yes
DEVICE=eno1
IPADDR=192.168.6.30
NETMASK=255.255.255.0
GATEWAY=192.168.6.1
PREFIX=24
DNS1=192.168.6.30
DNS2=8.8.8.8
DEFROUTE=yes


I have spent a lot of time on this with no success. I have done this before on a VPS server with static IP and it worked, but on my local network it does not. Could someone tell me where I am messing things up?







share|improve this question











I have added a new zone to /etc/named.conf as follows:



zone "mysite.local" IN 
type master;
file "mysite.local.zone";
allow-update none; ;
;


Also, the zone file is as follows:



;File name: mysite.local.zone

$TTL 604800
@ IN SOA ns1.mysite.local. admin.mysite.local. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
; name servers - NS records
IN NS ns1.mysite.local.
; IN NS ns2.nyc3.example.com.

; name servers - A records
ns1.mysite.local. IN A 192.168.6.30
;ns2.nyc3.example.com. IN A 10.128.20.12

; 10.128.0.0/16 - A records
;host1.mysite_local.com. IN A 10.128.100.101
;host2.nyc3.example.com. IN A 10.128.200.102


The named service starts without a problem, but the system cannot resolve mysite.local when I check with nslookup and ping



Also, I cannot access via browser the domain name that I have created as a VirtualHost in httpd.conf as follows:



<VirtualHost 127.0.0.1:80>
ServerName mysite.local
ServerAlias www.mysite.local
DocumentRoot "/var/www/html"
SetEnv APPLICATION_ENV "development"
<Directory "/var/www/html/public_html">
DirectoryIndex index.php
Order allow,deny
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


Finally, this is my ifcfg-eno1 file:



TYPE=Ethernet
BOOTPROTO=static
NAME=eno1
DEVICE=eno1
UUID=9a375715-f0d7-3fa8-8494-6a5d10946f16
ONBOOT=yes
DEVICE=eno1
IPADDR=192.168.6.30
NETMASK=255.255.255.0
GATEWAY=192.168.6.1
PREFIX=24
DNS1=192.168.6.30
DNS2=8.8.8.8
DEFROUTE=yes


I have spent a lot of time on this with no success. I have done this before on a VPS server with static IP and it worked, but on my local network it does not. Could someone tell me where I am messing things up?









share|improve this question










share|improve this question




share|improve this question









asked Jul 4 at 10:10









JasonStack

17110




17110











  • Where are you trying to resolve mysite.local from? Does your /etc/resolv.conf include nameserver IP_of_your_dns_server ? Are you using NetworkManager ? If not, try to use NM_CONTROLLED=no in your ifcfg-eno1 file. Restart the network
    – Valentin B
    Jul 4 at 11:28










  • Valentin, resolv.conf includes both dns server IPs. I added NM_CONTROLLED=no but still cannot resolve mysite.local.
    – JasonStack
    Jul 4 at 11:49










  • Jason, please tell the audience from what host you are trying to ping. and where. provide some more details. What do the logs on the dns server tell you?
    – Valentin B
    Jul 4 at 12:07







  • 2




    It is not recommended to use .local as your network's domain name, because it is used by mDNS.
    – Johan Myréen
    Jul 4 at 14:24






  • 1




    Is 192.168.6.30 a recursive or authoritative nameserver? It seems to be both and this is bad, you need to split both roles. Also using as recursive first an internal one and second an external one will both fail to provide you with the service you think it should provide (second nameserver will never be queried until the first one stops to reply at all) and also open you to vulnerabilities as this may leak internal queries outside against your will. Also ping is not a DNS troubleshooting tool, and when you use dig always specify the nameserver you query to have meaningful replies
    – Patrick Mevzek
    Jul 7 at 21:54
















  • Where are you trying to resolve mysite.local from? Does your /etc/resolv.conf include nameserver IP_of_your_dns_server ? Are you using NetworkManager ? If not, try to use NM_CONTROLLED=no in your ifcfg-eno1 file. Restart the network
    – Valentin B
    Jul 4 at 11:28










  • Valentin, resolv.conf includes both dns server IPs. I added NM_CONTROLLED=no but still cannot resolve mysite.local.
    – JasonStack
    Jul 4 at 11:49










  • Jason, please tell the audience from what host you are trying to ping. and where. provide some more details. What do the logs on the dns server tell you?
    – Valentin B
    Jul 4 at 12:07







  • 2




    It is not recommended to use .local as your network's domain name, because it is used by mDNS.
    – Johan Myréen
    Jul 4 at 14:24






  • 1




    Is 192.168.6.30 a recursive or authoritative nameserver? It seems to be both and this is bad, you need to split both roles. Also using as recursive first an internal one and second an external one will both fail to provide you with the service you think it should provide (second nameserver will never be queried until the first one stops to reply at all) and also open you to vulnerabilities as this may leak internal queries outside against your will. Also ping is not a DNS troubleshooting tool, and when you use dig always specify the nameserver you query to have meaningful replies
    – Patrick Mevzek
    Jul 7 at 21:54















Where are you trying to resolve mysite.local from? Does your /etc/resolv.conf include nameserver IP_of_your_dns_server ? Are you using NetworkManager ? If not, try to use NM_CONTROLLED=no in your ifcfg-eno1 file. Restart the network
– Valentin B
Jul 4 at 11:28




Where are you trying to resolve mysite.local from? Does your /etc/resolv.conf include nameserver IP_of_your_dns_server ? Are you using NetworkManager ? If not, try to use NM_CONTROLLED=no in your ifcfg-eno1 file. Restart the network
– Valentin B
Jul 4 at 11:28












Valentin, resolv.conf includes both dns server IPs. I added NM_CONTROLLED=no but still cannot resolve mysite.local.
– JasonStack
Jul 4 at 11:49




Valentin, resolv.conf includes both dns server IPs. I added NM_CONTROLLED=no but still cannot resolve mysite.local.
– JasonStack
Jul 4 at 11:49












Jason, please tell the audience from what host you are trying to ping. and where. provide some more details. What do the logs on the dns server tell you?
– Valentin B
Jul 4 at 12:07





Jason, please tell the audience from what host you are trying to ping. and where. provide some more details. What do the logs on the dns server tell you?
– Valentin B
Jul 4 at 12:07





2




2




It is not recommended to use .local as your network's domain name, because it is used by mDNS.
– Johan Myréen
Jul 4 at 14:24




It is not recommended to use .local as your network's domain name, because it is used by mDNS.
– Johan Myréen
Jul 4 at 14:24




1




1




Is 192.168.6.30 a recursive or authoritative nameserver? It seems to be both and this is bad, you need to split both roles. Also using as recursive first an internal one and second an external one will both fail to provide you with the service you think it should provide (second nameserver will never be queried until the first one stops to reply at all) and also open you to vulnerabilities as this may leak internal queries outside against your will. Also ping is not a DNS troubleshooting tool, and when you use dig always specify the nameserver you query to have meaningful replies
– Patrick Mevzek
Jul 7 at 21:54




Is 192.168.6.30 a recursive or authoritative nameserver? It seems to be both and this is bad, you need to split both roles. Also using as recursive first an internal one and second an external one will both fail to provide you with the service you think it should provide (second nameserver will never be queried until the first one stops to reply at all) and also open you to vulnerabilities as this may leak internal queries outside against your will. Also ping is not a DNS troubleshooting tool, and when you use dig always specify the nameserver you query to have meaningful replies
– Patrick Mevzek
Jul 7 at 21:54















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453394%2fcannot-bind-a-local-domain-name-to-my-system%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453394%2fcannot-bind-a-local-domain-name-to-my-system%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay