Cisco Packet Tracer Dns enable using Router - cisco

I have a question in Cisco Packet Tracer.
I have a Router and a Dns server and my Config from Dns is blocked. How can I start the DNS server using the Router?
ip dns server ... doesn't work
Thank you

Unfortunately Cisco Packet Tracer does not support command "ip dns server" hence you can not use Router like Dns server.
All supported commands you can see in Program_Root_Dir\help\default\index.html or push a question mark in the program.

First, you need to attach "WIC 1ENET" in Router to connect it with DNS server
Second, you need an IP address in DNS server For example (192.168.3.2)
Third, enter Gateway like this (192.168.3.1), and DNS server (192.168.3.2)
fourth, Enter the DNS server and go to Services and enter Name and address like this Figure, and then ADD.
Finally, Go to the end Host (PC), then Desktop and then IP Configuration, and Enter the DNS server (192.168.3.2).
I hope that's helpful for you to understand and make it work.

You need enable any routing protocol and add the network where is the DNS Server.

Related

Using Wireshark, how can I report DNS queries?

I start a capture with no other applications running on my machine other than chrome and Wireshark, and then I start a capture with Wireshark. And go to a website for about 20 seconds. How can I look at the DNS queries all sent in the capture time?
So for any given website, I need to find the
DNS resolved ip address
DNS server ip (I believe this is the destination ip)
DNS server port
Just enter the word dns in the filter field... simple as that
see more here

how to connect to a server running on computer using computer's IP address?

I am working on IOT project in which I have to change some variables(fans speed, lights, etc). So just as a starter, I created a node.js server and tried to send requests to the server through a local network using local IP as
http://localhost:7000/users=mandar?lights=OFF
or
http://192.168.43.248:7000/users=mandar?lights=OFF
and it works fine.
Now I want to do the same over the internet. So I got Computer's IP address from https://www.google.co.in/search?q=myip and tried to send a request to the following URL:
http://(IP_address):7000/users=mandar?lights=OFF
This time it keeps on loading and finally shows this site can't be loaded.
So what is the right way to connect to the server through the internet?
Thank you.
You have to do port forwarding.
The IP address you get from the google search is the out-facing IP address of your router. However, your router knows your computer by your local IP address (i.e. 192.168.x.y).
You have to configure your router to send packets coming from internet destined to port 7000(or any other port) to your computer's port 7000.
Check your router's documentation on port forwarding. Likely there is a settings page on the web interface of your router that you can do the desired port forwarding. After configuring the router, there are several tools online to test if the port forwarding is actually working. I suggest you use one of those tools to verify the configuration before testing with your project.
You also might want to check if your router has a firewall. You can add an exception to the firewall such that a specific port number is reachable from the internet.

How to add (Reverse) DNS entries in Cisco IOS?

I've got a customer where the router needs to be replaced with a Cisco router.
The current router is a linux machine with webmin installed on it.
There's a BIND DNS server with multiple zones.
There's a zone called companyname.be with entries name-ip (address records).
There's also a zone called 192.9.200 (which is the local subnet) with entries address-name (reverse address records).
This configuration can be seen below:
I'm not sure why they need this but someone at the customer's company told me that it's necessary.
In the end the goal is to be able to ping by using a name rather than an IP.
Does someone know how to configure this in Cisco IOS?
I've been searching this for a while now but all I came up with is this link: http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/257-cisco-router-dns-server.html
I tried it but this only seems to create a host table on the router itself.
That hosttable is not used by the DNS.
(Can ping to domain name from router CLI but cannot ping to a domain name from a PC with that router as default gateway.)
I've already found the answer here: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dns/configuration/15-sy/dns-15-sy-book/Configuring-DNS.html#GUID-E4A67061-354E-4847-8F56-9A88446C7D30
R1#conf t
R1(config)#ip domain companyname.be
R1(config)#ip name-server 8.8.8.8
R1(config)#ip dns server
R1(config)#ip host computername1.companyname.be
And for the DHCP server to send the DNS server to DHCP clients:
R1(config)#ip dhcp pool pool_name
R1(dhcp-config)#dns-server ip_address_of_router
Now any host can ping computername1.companyname.be.

Can't get DNSMASQ DHCP to configure multiple name servers

Perhaps someone has some help? I am running dnsmasq on Ubuntu 12.04 LTS. This server's address is 192.168.15.3. My gateway's DNS is 192.168.1.254, that takes me out to the Internet. I also have a special-purpose DNS at 192.168.15.2. So I wanted to give those 3 name servers to DHCP clients. This is my dnsmasq.conf server= section:
server=/localnet/192.168.15.3
server=/localnet/192.168.15.2
server=/15.168.192.in-addr.arpa/192.168.1.254
However, when I look at the DHCP allocation on a client, I see only 192.168.15.3 as the sole DNS server. Clients cannot access the Internet (the NIC on .3 is configured correctly and can access the Internet from its console login).
Granted, the first server= line is probably not necessary, but I added it thinking it may help, didn't.
What am I doing wrong? Thanks for your help!
OK, after MUCH experimentation, I found I had to push the option manually. In the dnsmasq.conf file, I added the following line:
dhcp-option=6,
like so:
dhcp-option=6,192.168.15.3,192.168.15.2,192.168.1.254
This served the correct list of name servers to DHCP clients.
The server lines are configuration for dnsmasq's own DNS server, about where it should forward DNS requersts that it receives in order to be able to resolve (and cache) them.
Only the dhcp-options are part of the DHCP configuration that get passed to DHCP clients - so, the accepted anser is correct, but I wanted to share why.

Troubles accessing the VirtualHost on a local net

Hi I have a Huawei ADSL modem with a dynamic IP. I set up a dynamic dns with freedns and I can easily access my Virtual host on apache from outside my private network, from internet.
So trying to access it from a local network I get a modems login page.
I have the rule in my modems NAT to connect port 80 to my server but it seems it doesnt work from internal net.
My server hosting the virtual host is 192.168.0.1 , the modem has the 192.168.0.254 address.
I tried to put my external domain name into the /etc/hosts file, but if I do that then asterisk server gets confused.
What could be the cause of the problem ? And what would be the best solution to this problem ?
Should I set up a caching DNS on the private side of the net ?
Hugger is half right... Its because your router is blocking loopbacks. The easiest way around this is to edit the hosts file (See the Wiki page) on the computer that is behind the network to see the local IP of the computer as the virtual host your going for. For example if your server is on 192.168.0.1 and the virtual hostname is www.imrad.com then insert
192.168.0.1 www.imrad.com
into your hosts file. If your computer leaves the local network (like a laptop you take to work) and joins a network not behind your router you need to comment out the line in the hosts file.
well actually to access that you must find the local ip address of the server by going into command line/prompt and typing ipconfig /all then you will find ipv4 address. Take note of that.
Go to another computer and your that ip and it will show.
The reason that was happening is because the router/modem knows you are in its network so it will think you ar trying to go top the login page of it. That happens to me too.

Resources