View previous topic :: View next topic |
Author |
Message |
Will Reeve
Joined: 30 Oct 2003 Posts: 209 Location: Norfolk, England
|
PIC based DNS server |
Posted: Fri Mar 11, 2011 4:53 am |
|
|
Can the stack run a DNS server? I just need one manual entry to resolve say www.mypic.com into the IP address of the 'PIC'.
If I type the ip address into the browser it works fine, but it would be very nice to resolve a name to it.
There are no outside world connections to worry about, the network is restricted to one device at a time using the DHCP server. |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Fri Mar 11, 2011 7:04 pm |
|
|
What are you trying to connect to the pic with ? While DNS would be nice, you can use a fixed IP for the PIC and put it's "name" (mypic.com) in the host file on your machine and it will resolve that way. Would that solve the problem ? (on Linux machines, it should be in /etc/hosts and on Windows I think it is in C:\WINDOWS\system32\drivers\etc\hosts - at least that is where it is in XP)
mikey _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Sat Mar 12, 2011 8:25 am |
|
|
IF you were able to run a DNS server on the PIC, you'd still need to point your PC to that PIC as your DNS server. Far easier and cleaner to just use a hosts file entry on your PC, or fix your local DNS if you have control over it. |
|
|
|