Cannot bind a local domain name to my system
Clash 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?
fedora dns bind
 |Â
show 2 more comments
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?
fedora dns bind
Where are you trying to resolvemysite.local
from? Does your/etc/resolv.conf
includenameserver IP_of_your_dns_server
? Are you using NetworkManager ? If not, try to useNM_CONTROLLED=no
in yourifcfg-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
Is192.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. Alsoping
is not a DNS troubleshooting tool, and when you usedig
always specify the nameserver you query to have meaningful replies
â Patrick Mevzek
Jul 7 at 21:54
 |Â
show 2 more comments
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?
fedora dns bind
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?
fedora dns bind
asked Jul 4 at 10:10
JasonStack
17110
17110
Where are you trying to resolvemysite.local
from? Does your/etc/resolv.conf
includenameserver IP_of_your_dns_server
? Are you using NetworkManager ? If not, try to useNM_CONTROLLED=no
in yourifcfg-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
Is192.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. Alsoping
is not a DNS troubleshooting tool, and when you usedig
always specify the nameserver you query to have meaningful replies
â Patrick Mevzek
Jul 7 at 21:54
 |Â
show 2 more comments
Where are you trying to resolvemysite.local
from? Does your/etc/resolv.conf
includenameserver IP_of_your_dns_server
? Are you using NetworkManager ? If not, try to useNM_CONTROLLED=no
in yourifcfg-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
Is192.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. Alsoping
is not a DNS troubleshooting tool, and when you usedig
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
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Where are you trying to resolve
mysite.local
from? Does your/etc/resolv.conf
includenameserver IP_of_your_dns_server
? Are you using NetworkManager ? If not, try to useNM_CONTROLLED=no
in yourifcfg-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. Alsoping
is not a DNS troubleshooting tool, and when you usedig
always specify the nameserver you query to have meaningful repliesâ Patrick Mevzek
Jul 7 at 21:54