gethostbyname() doesnt always work
I dont know if this is a programming question or a network question, but theres no `network programming' forum, so I guess I'll ask it here.
Im having some problems with the gethostbyname() function. It works on most names, for example: www.hotmail.com gives me 207.68.173.245 www.linuxquestions.org gives me 64.179.4.146 localhost gives me 127.0.0.1 however these addresses dont resolve for me, although if I open a browser window I can easily access them: www.al4a.com any ideas? |
using this prog i resolved all of those addy's fine:
Code:
[n00b@localho.outernet] cat ghbyname.c |
All times are GMT -5. The time now is 02:26 PM. |