CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC based DNS server

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PIC based DNS server
PostPosted: Fri Mar 11, 2011 4:53 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Mar 11, 2011 7:04 pm     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Mar 12, 2011 8:25 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group