Re: Samba with Linux using Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message
buzzo said...

with ref to using host_by_name(host_name)

how to form host_name for a LAN?

the host_name for www.xxxx works fine, but how about a local area network?

thanks

buzzo

If the name is in DNS, then you simply need to do host_by_name(host_name).

For example, your Windows computer is called User-PC. That name is in DNS. You do

host_by_name("User-PC")

Or

host_by_name("User-PC.localdomain")

You can find out what the full hostname (including the localdomain name) of a Windoze system is by running "ipconfig /all".

If the name is not in DNS, then host_by_name() will not work. Try nmblookup in that case.

E.g.

system("nmblookup "&name, 2)

Or

system("nmblookup -R -U 192.168.0.1 "&name, 2)

where 192.168.0.1 is the ip address of your WINS server. ("ipconfig /all" should list your WINS server, if you have one.)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu