ericbsd
Developer
When I ping in my server it works.
When I ping from a pc in the same network.
I nslookup in my server.it give me that.
I try to figure what is wrong. But I'm out of resources.
Code:
ping -c4 eric.hostbsd.com
PING eric (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.028 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.018 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.019 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.012 ms
--- eric ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.012/0.019/0.028/0.006 ms
When I ping from a pc in the same network.
Code:
ping -c4 eric.hostbsd.com
ping: unknown host eric.hostbsd.com
Code:
cat /etc/rc.conf
hostname="eric.hostbsd.com"
ifconfig_nfe0="dhcp inet 192.168.2.14 netmask 255.255.255.0"
defaultroute="192.168.2.1"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
apache22_enable="YES"
apache22ssl_enable="YES"
accf_http_ready="YES"
Code:
cat /etc/hosts
# $FreeBSD: release/9.0.0/etc/hosts 109997 2003-01-28 21:29:23Z dbaker $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file. Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
::1 eric eric.hostbsd.com
127.0.0.1 eric eric.hostbsd.com
192.168.2.14 eric eric.hostbsd.com
192.168.2.14 eric.hostbsd.com
#
# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers. Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
Code:
cat /etc/resolv.conf
# Generated by resolvconf
domain hostbsd.com
nameserver 192.168.2.1
nameserver 142.167.200.39
I nslookup in my server.it give me that.
Code:
nslookup eric.hostbsd.com
Server: 192.168.2.1
Address: 192.168.2.1#53
** server can't find eric.hostbsd.com: NXDOMAIN
Code:
netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.2.1 UGS 0 53 nfe0
127.0.0.1 link#6 UH 0 58 lo0
192.168.2.0/24 link#5 U 0 1540 nfe0
192.168.2.14 link#5 UHS 0 6 lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 ::1 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%nfe0/64 link#5 U nfe0
fe80::21e:90ff:fed8:50b1%nfe0 link#5 UHS lo0
fe80::%lo0/64 link#6 U lo0
fe80::1%lo0 link#6 UHS lo0
ff01::%nfe0/32 fe80::21e:90ff:fed8:50b1%nfe0 U nfe0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%nfe0/32 fe80::21e:90ff:fed8:50b1%nfe0 U nfe0
ff02::%lo0/32 ::1 U lo0
I try to figure what is wrong. But I'm out of resources.