Community discussions

MikroTik App
 
majiddehnamaki
just joined
Topic Author
Posts: 2
Joined: Mon Sep 17, 2018 2:43 pm

add static dns

Mon Sep 17, 2018 2:48 pm

hi
I need add DNS to Mikrotik and use this command for this:

Code: Select all

ip DNS static add address=127.0.0.1 name=sample.com
after this command I have sample.com but I want too www.sample.com but when I add this see this error:
entry already exists
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: add static dns

Mon Sep 17, 2018 6:27 pm

You probably already have a static DNS entry for www.sample.com.

Execute

/ip dns static export

to verify you current configuration.
 
majiddehnamaki
just joined
Topic Author
Posts: 2
Joined: Mon Sep 17, 2018 2:43 pm

Re: add static dns

Tue Sep 18, 2018 9:07 am

You probably already have a static DNS entry for www.sample.com.

Execute

/ip dns static export

to verify you current configuration.
no, I haven't.
I just want to add domain with www and without this but cant
 
User avatar
baragoon
Member Candidate
Member Candidate
Posts: 294
Joined: Thu Jan 05, 2017 10:38 am
Location: Kyiv, UA
Contact:

Re: add static dns

Tue Sep 18, 2018 9:23 am

everything works, added 2 static entries
ip dns static export
---
add address=127.0.0.1 name=sample.com
add address=127.0.0.1 name=www.sample.com
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: add static dns

Tue Sep 18, 2018 10:22 am

Which version of RouterOS are you running? Can you post the output of /ip dns static export here?
 
User avatar
AminYounessi
Trainer
Trainer
Posts: 55
Joined: Wed Nov 23, 2016 7:39 am

Re: add static dns

Tue Sep 18, 2018 11:12 am

Dear Majid,

Please check your ip/dns configuration and you need to set your router address into "ip dns set servers=router-address" then you need to go to the ip firewall nat and write dns-proxy rule there for protocol=udp and destionation port 53.
In static dns settings if you write "sample.com" you need to browse just sample.com to open you router webfig page and also if you put www.sample.com in your routers static dns page you need to browse www.sample.com.

Best Regards,

Who is online

Users browsing this forum: No registered users and 73 guests