Community discussions

MikroTik App
 
User avatar
gephenzie
just joined
Topic Author
Posts: 3
Joined: Sun Jan 11, 2015 4:55 pm

DNS issue - Unable to ping internal names

Wed Oct 06, 2021 10:38 pm

I am setting up an RB460g and I can not ping names in some instances.

From a client on the segment:
* I can ping IPs and names on the internet without a problem
* I can ping IPs but not names on my existing (parent) segment (10.0.0.0/24 - see below for setup) by IP (Linux says: temporary failure in name resolution). Same results from the RB terminal.
* I can't ping a name (xxyyzz) that I've setup a static entry for on the RBs DNS to an IP (10.0.0.245) but ping to IP works fine. In the RB terminal a ping to the name xxyyzz works fine.

I wiped the router completely then followed basic setup https://help.mikrotik.com/docs/display/ ... figuration . I noted there was no info about DNS in it so I did what I thought was correct.

I am presently testing with the RB setup under the existing router (a NetGear wireless router) so my RB450g WAN/Eth1 is plugged into it and my testing machines are downstream (Eth2 - Eth5) of the RB. I'll retire the NetGear as a router once things are working. The NetGear segment is 10.0.0.0/24 and the RB segment is 10.1.2.0/24. Most my stuff is on the 10.0.0.0 segment for now, with testing equipment on the 10.1.2.0 segment.

Feel free to point out any other badly configured stuff or suggestions - my feelings won't be hurt ;)

Here's my export:
# oct/06/2021 15:09:31 by RouterOS 6.32.3
# software id = XFBU-EHZP
#
/interface bridge
add name=local
/ip neighbor discovery
set ether1 discover=no
set ether2 discover=no
set ether3 discover=no
set ether4 discover=no
set ether5 discover=no
/ip pool
add name=dhcp_pool1 ranges=10.1.2.90-10.1.2.139
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=local name=dhcp1
/interface bridge port
add bridge=local interface=ether2
add bridge=local interface=ether3
add bridge=local interface=ether4
add bridge=local interface=ether5
/ip address
add address=10.1.2.1/24 interface=local network=10.1.2.0
/ip cloud
set update-time=no
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=10.1.2.0/24 dns-server=10.1.2.1,1.1.1.1,8.8.8.8 gateway=\
    10.1.2.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,8.8.8.8
/ip dns static
add address=10.0.0.245 name=xxyyzz
/ip firewall filter
add chain=input comment="accept established,related" connection-state=\
    established,related
add action=drop chain=input connection-state=invalid
add chain=input comment="allow ICMP" in-interface=ether1 protocol=icmp
add chain=input comment="allow Winbox" in-interface=ether1 port=8291 \
    protocol=tcp
add chain=input comment="allow SSH" in-interface=ether1 port=22 protocol=tcp
add action=drop chain=input comment="block everything else" in-interface=\
    ether1
add action=fasttrack-connection chain=forward comment=\
    "fast-track for established,related" connection-state=established,related
add chain=forward comment="accept established,related" connection-state=\
    established,related
add action=drop chain=forward connection-state=invalid
add action=drop chain=forward comment=\
    "drop access to clients behind NAT form WAN" connection-nat-state=!dstnat \
    connection-state=new in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip ssh
set strong-crypto=yes
/ip traffic-flow
set enabled=yes
/system clock
set time-zone-name=America/Detroit
/tool bandwidth-server
set enabled=no
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=local
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 725
Joined: Tue Dec 17, 2019 1:08 pm

Re: DNS issue - Unable to ping internal names

Thu Dec 16, 2021 10:14 am

* I can ping IPs but not names on my existing (parent) segment (10.0.0.0/24 - see below for setup) by IP (Linux says: temporary failure in name resolution). Same results from the RB terminal.

You need to enter the DNS-Server of the Parent Network
in your Routers DNS-Configuration. In your momentary config,
the Router will ask Google and Cloudflare for the IP of "xxyyzz"


Basic-Exemple (assuming 10.0.0.1 is your parent DNS-Server)
/ip dns
set allow-remote-requests=yes servers=10.0.0.1

Who is online

Users browsing this forum: DimoSK, GoogleOther [Bot] and 41 guests