I can not access my DNS from outside my CentOS Server

0

Dear, I can not see my DNS from the outside of my server. I have a server (It is not a virtual machine) CentOS 6.9 32bits, I have configured my DNS, which within the server respond well. But when I perform from my windows console:

λ nslookup                                                                                                         
Servidor predeterminado:  UnKnown                                                                                  
Address:  [mi ip]                                                                                             

> www.[mi dominio].com                                                                                                
Servidor:  UnKnown                                                                                                 
Address:  [mi ip]                                                                                              

*** No hay registros internal type for both IPv4 and IPv6 Addresses (A+AAAA) disponibles para www.[mi dominio].com    

> ns1.[mi dominio].com                                                                                                
Servidor:  UnKnown                                                                                                 
Address:  [mi ip]                                                                                              

*** No hay registros internal type for both IPv4 and IPv6 Addresses (A+AAAA) disponibles para ns1.[mi dominio].com    
>  

From Linux:

[

serverroot@server~]$ nslookup
> www.[midominio].com
Server:         [mi ip]
Address:        [mi ip]#53

Name:   www.[mi dominio].com
Address: [mi ip]
> dns.[mi dominio].com
Server:         [mi ip]
Address:        [mi ip]#53

Name:   dns.[mi dominio].com
Address: [mi ip]
> ns1.[mi dominio].com
Server:         [mi ip]
Address:        [mi ip]#53

Name:   ns1.[mi dominio].com
Address: [mi ip]
>

What I am needing is to address my domain goingcode.com to my server, but I am not achieving it because I try to configure the DNS of the domain, it tells me that my DNS does not exist. My ip is set to be static from CentOS. I assume that I have well configured my DNS of

/etc/named.conf
/etc/resolv.conf
    
asked by Nahuel Jakobson 19.08.2017 в 20:00
source

1 answer

0

Apparently your problem is that the default DNS server on your Windows computer does not point to your CentOS server.

Assuming that your Windows server has the IP 192.168.0.1 and that Centos has 192.168.0.2, and that the domain you want to query is called www.goingcode.com from the Windows cmd it executes the following statement:

nslookup www.goingcode.com 192.168.0.2

If you receive an answer like this it is that your CentOs is solving the requests correctly from other computers:

Servidor:  192.168.0.2
Address:  192.168.0.2

Nombre:  www.goingcode.com
Address:  192.168.0.2

You can see from the cmd your default DNS server by interface using the command:

netsh interface ipv4 show dnsserver

And change it using the following:

netsh interface ipv4 add dnsserver "<<nombre de interfaz>>" address=192.168.x.x index=1

Or with the following steps on this page .

    
answered by 20.08.2017 в 00:35