cahe-only DNS in jail

2005-02-02 Thread Matt
I'm experiencing strange behaviour with Bind running inside a jail.  I'm 
running 5.2.1 current in the jail.  Thinks are working, but poorly.  
Lookups for my local machines work perfectly.  Some remote lookups work 
fine (yahoo, google, etc...).  However, many lookups time out, but will 
succeed after a few tries.  I'm doing all this from home (comcast cable 
internet).  Anyway, I'm not sure what to do.  Sniffing the network 
doesn't seem to help much.  Queries and requests are reaching the right 
hosts and ports.  Thanks for any help.

dnshost# uname -a
FreeBSD dnshost 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 
20:45:55 GMT 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

dnshost# named -v
named 8.3.7-REL Sun Jan  2 13:17:40 PST 2005
   [EMAIL PROTECTED]:/usr/obj/usr/src/usr.sbin/named
dnshost# nslookup www.washington.edu
Server:  localhost
Address:  127.0.0.1
*** localhost can't find www.washington.edu: Server failed
dnshost# !!
nslookup www.washington.edu
Server:  localhost
Address:  127.0.0.1
Non-authoritative answer:
Name:www.washington.edu
Addresses:  140.142.15.233, 140.142.3.7, 140.142.3.35, 140.142.15.163
dnshost# !!
nslookup www.usenix.org
Server:  localhost
Address:  127.0.0.1
Non-authoritative answer:
Name:db.usenix.org
Address:  131.106.3.253
Aliases:  www.usenix.org
options {
   directory /etc/namedb;
   pid-file /var/run/named/pid;
};
zone . {
   type hint;
   file tables/named.root;
};
zone 0.0.127.IN-ADDR.ARPA {
   type master;
   file tables/db.localhost;
};
zone hersant.dyndns.org {
   type master;
   file tables/db.hersant.dyndns.org;
};
zone 2.168.192.in-addr.arpa {
   type master;
   file tables/db.2.168.192.in-addr.arpa;
};
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Devilator - performance monitoring for FreeBSD

2005-02-02 Thread Borja Marcos
Hello,
	I'm writing a performance monitoring data collector for Orca 
(www.orcaware.com) for FreeBSD 4- and 5-.

	I'm not sure about the correct values in the process description to 
get a picture as accurate as possible of the cpu usage of different 
processes. I've seen that top uses p_runtime (FreeBSD 5 and FreeBSD 4), 
but I'm not sure if the value would be really useful.

You can see a snapshot of the work in progress at:
ftp://borja.sarenet.es/pub/freebsd4-devilator.pdf
ftp://borja.sarenet.es/pub/freebsd5-devilator.pdf
	I'm intending to do something more complete than the classical 
orcallator for Solaris. Namely, I am going to plot:

	- System processes resource usage (hopefully useful to spot 
bottlenecks, and hopefully useful for the system developers)

	- Resource usage by a set of processes specified by the user. It will 
have a configuration file with {process name, regular expression} 
pairs. Processes whose name matches the regular expression will get 
their own graph with %user/%system, etc cpu times, and probably I/O 
statistics, memory statistics, so that you can know wether your (for 
example) smtpd processes are getting more resources, or the memory hogs 
are the httpd's, etc.

- MBUF statistics
- Network statistics (connections, TCP/UDP/ICMP statistics...)
- Various caches and VM
	BTW, I'm having serious issues with a machine with very big 
directories, and I've been playing with the dirhash configuration, 
setting up a very big cache. It would be useful to have some statistics 
so that I can plot the number of hits/misses to that dirhash cache, 
etc.

	Please send me suggestions, ideas, problems seen in these examples. 
The software will obviously be released to the community, and I plan to 
make the first release available in one or two weeks.

	I know that there may be too many graphs in the page, and I will 
probably add some switches to turn graphs on/off.

Best regards,


Borja.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Devilator - performance monitoring for FreeBSD

2005-02-02 Thread Robert Watson

On Wed, 2 Feb 2005, Borja Marcos wrote:

   I'm not sure about the correct values in the process description
 to get a picture as accurate as possible of the cpu usage of different
 processes. I've seen that top uses p_runtime (FreeBSD 5 and FreeBSD 4),
 but I'm not sure if the value would be really useful. 

This is very cool. :-)  How are you currently extracting the information? 
One of the things I've wanted to do for a while is make sure all this sort
of thing is exposed via snmpd so that the information can be gathered
easily across a large number of hosts (say, 10,000).

   BTW, I'm having serious issues with a machine with very big
 directories, and I've been playing with the dirhash configuration,
 setting up a very big cache. It would be useful to have some statistics
 so that I can plot the number of hits/misses to that dirhash cache, etc. 

systat contains a large number of useful statistics and monitoring pieces,
including some really useful stuff in systat -vmstat.  There's also a lot
of interesting information to be had from vmstat -z and vmstat -m in terms
of tracking system resource use.

It would be neat to have interrupt rates classified by source, so that the
regularity of clock interrupts was visible against the variation in things
like disk and network interrupts.

Robert N M Watson

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Devilator - performance monitoring for FreeBSD

2005-02-02 Thread Harti Brandt
On Wed, 2 Feb 2005, Robert Watson wrote:

RW
RWOn Wed, 2 Feb 2005, Borja Marcos wrote:
RW
RWI'm not sure about the correct values in the process description
RW to get a picture as accurate as possible of the cpu usage of different
RW processes. I've seen that top uses p_runtime (FreeBSD 5 and FreeBSD 4),
RW but I'm not sure if the value would be really useful. 
RW
RWThis is very cool. :-)  How are you currently extracting the information? 
RWOne of the things I've wanted to do for a while is make sure all this sort
RWof thing is exposed via snmpd so that the information can be gathered
RWeasily across a large number of hosts (say, 10,000).

That could be a nice JUH (junior userspace hacker's) task to add a module 
to bsnmp.

harti
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Devilator - performance monitoring for FreeBSD

2005-02-02 Thread Borja Marcos
This is very cool. :-)  How are you currently extracting the 
information?
One of the things I've wanted to do for a while is make sure all this 
sort
of thing is exposed via snmpd so that the information can be gathered
easily across a large number of hosts (say, 10,000).
	Right now I'm using a combination of sysctl() and kvm accesses. The 
system is simple: a small agent reads those values and places them in a 
text file. That text file is then processed by the Orca program.

	You can set it up so that each machine only runs the small agent, and 
you fetch the text files with (for example) rsync from another machine 
dedicated to generating the graphs and serving the web pages for all 
your hosts. I'm right now using a Sun Netra T1 running FreeBSD 5.3 and 
it's generating pages for all of our Solaris hosts.

	The advantage of this approach is security. It's much easier to secure 
an rsync access than snmp, and the data collection is much more 
precise.

systat contains a large number of useful statistics and monitoring 
pieces,
including some really useful stuff in systat -vmstat.  There's also a 
lot
of interesting information to be had from vmstat -z and vmstat -m in 
terms
of tracking system resource use.
Yes, I've been having a look at the systat and vmstat source code.
It would be neat to have interrupt rates classified by source, so that 
the
regularity of clock interrupts was visible against the variation in 
things
like disk and network interrupts.
That's in my list in one way or another.

Borja.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Devilator - performance monitoring for FreeBSD

2005-02-02 Thread Andrew J Caines
Borja,

 I'm writing a performance monitoring data collector for Orca
 (www.orcaware.com) for FreeBSD 4- and 5-.

That's great. As many Solaris admins know, Orca is a very nice tool for
both admins who like to see resource usage and trends, and for manglement
types who like to see pretty pictures.

I'd also vouch for collecting orcallator data using rsync over ssh from the
client systems to the cruching and report generating server.


-Andrew-
-- 
 ___
| -Andrew J. Caines-   Unix Systems Engineer   [EMAIL PROTECTED]  |
| They that can give up essential liberty to obtain a little temporary |
|  safety deserve neither liberty nor safety - Benjamin Franklin, 1759 |
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TX rate problem in hostap mode

2005-02-02 Thread Divacky Roman
On Tue, Feb 01, 2005 at 02:22:22PM -0800, Sam Leffler wrote:
 Paulo Fragoso wrote:
 Hi,
 
 We are using a Samsung wireless card (PRISM2) with FreeBSD 5.3 in hostap 
 mode and client is running FreeBSD 5.3 with Orinoco wireless card, all 
 works fine but tx rate at hostap it is all time in 2Mbps.
 
 We found this article for solve this problem with FreeBSD 5.x:
 
 http://excamera.com/cgi-bin/blosxom.cgi
 
 After modify dev/wi/if_wi.c in the hostap:
 
 --- dev/wi/if_wi.c.orig Tue Feb  1 17:15:20 2005
 +++ dev/wi/if_wi.c  Tue Feb  1 17:58:44 2005
 @@ -958,6 +958,10 @@
 wi_dump_pkt(frmhdr, NULL, -1);
 fid = sc-sc_txd[cur].d_fid;
 off = sizeof(frmhdr);
 +
 +   /* tx_rate problem? */
 +   frmhdr.wi_tx_rate = 110;
 +
 error = wi_write_bap(sc, fid, 0, frmhdr, 
 sizeof(frmhdr)) != 0
  || wi_mwrite_bap(sc, fid, off, m0, 
 m0-m_pkthdr.len) != 0;
 m_freem(m0);
 
 now we can get files from hostap faster (5x) than before.
 
 Both cards (hostap and client) was using mediaopt DS/11Mbps.
 
 Is possible ifconfig command change this field when using mediaopt 
 DS/11Mbps?
 
 Locking the xmit rate at 11Mb/s (or any rate for that matter) isn't a 
 great idea though wi should honor a fixed rate.  I thought Prism cards 
 implemented rate control in the firmware for ap mode but perhaps not. 
 netbsd has xmit rate control support for wi that purportedly does a good 
 job; you might investigate it.  If you come up with changes I'd be 
 interested in integrating them into -current (which could then be 
 brought back to -stable).
 
   Sam

I am working on a port of netbsd rssadapt to fbsd.. its almost complete, expect
PR within a week (I hope)

roman

p.s. you can find the patch (this one has known issues) at: 
hysteria.sk/~neologism/wifi.patch
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question: tracking filesystem changes?

2005-02-02 Thread Milan Obuch
On Tuesday 01 February 2005 17:02, Deomid Ryabkov wrote:
  This could be a custom filesystem wrapper for UFS that would report
  name of the file/directory being changed.
 
  Couldn't you use kqueue system to monitor the directory-file?
 
  I could, if I hadn't near 10 millions of them.
 
  Hm. I meant monitoring the directory itself, as a file, then parsing
  the directory list to determine what has changed. But with 10M files,
  probably nothing would work...

 these are 10M of static documents, the daily change is minmal.
 the question is: where it is the appropriate place to collect those
 changes? the right way seems to implement a customs filesystem, but would
 it possible to obtain a full path at that level?


Did you consider using fam (file alteration monitor) from ports?
Milan
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Boot fails: Default F1? hangs. Trashed MBR? replaced FBSD mbr.

2005-02-02 Thread Andriy Tkachuk
maybe the reason you didn't receive any answer about your
problem till now is that you choose the wrong list for your problem

the right one is probably -questions

anyway: you probably lost the partiotion table as well as mbr.
if your filesystems didn't reformatted or erased - all is fine,
you don't have to panic since all your information don't lost.

if you lost your partition table, you can recover.
for this you must find the first sectors of you partitions.
all this recovery staff you should do on some another machine
or booting from fixit cd, but the first is the best.

the first sector of your first slice (let's call it right)
starts probably on 63 sector. create it (fdisk) with some
reasonable size, say 500Mb. after this try disklabel (if it
has several partitions) or fsck to see it's real size.
probably you can use some another util for this - no matter.
the main idia is that you recover you partition table
by content of your partiotions. you may find useful for
this dd(1) and file(1) utils.

sorry i have no time now for bigger explanations,
also i did such staff several years ago (there was even worse
case - i erase the disklabels on fbsd slice) and i don't
remember some exact things, but i think you will overcome this.

regards

On Saturday 29 January 2005 05:01, you wrote:
 Chris Shenton [EMAIL PROTECTED] writes:
  So I booted from floppies, went to Wizard mode, did the Install
  FreeBSD Bootmanager. Rebooted. Now it halts at the prompt Default:
  F1 and beeps when I hit any key, like RETURN, F1, etc.

 Forgot to mention...

 When I was installing the FreeBSD MBR from floppy, I don't recall the
 sysinstall program showing me any partitions, at all.  Perhaps I've
 wiped out the info on disk that says where they are and what size.
 Again, I'm getting way outside my understanding of FreeBSD's boot
 process, but figured this might be rather significant. I'm getting a
 bad feeling about this.

 Thanks again.
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question: tracking filesystem changes?

2005-02-02 Thread Deomid Ryabkov
Milan Obuch wrote:
This could be a custom filesystem wrapper for UFS that would report
name of the file/directory being changed.
   

Couldn't you use kqueue system to monitor the directory-file?
 

I could, if I hadn't near 10 millions of them.
   

Hm. I meant monitoring the directory itself, as a file, then parsing
the directory list to determine what has changed. But with 10M files,
probably nothing would work...
 

these are 10M of static documents, the daily change is minmal.
the question is: where it is the appropriate place to collect those
changes? the right way seems to implement a customs filesystem, but would
it possible to obtain a full path at that level?
Did you consider using fam (file alteration monitor) from ports?
 

No, won't do the trick either.
I cannot afford setting up watchdogs for every file or even every directory.
And I'm essentially interested in every one of them (for mirroring 
purposes).
A more general approach is needed.
E.g., if an unlink call is issued and an inode is within a particular 
filesystem (luckily, most of our data
already lives on or can be easily moved to a separate filesystem), a 
notice is sent to some userland daemon:
file /www/xxx/yyy.shtml is unlinked. Or opened for writing, or 
renamed... etc.
The file is then scheduled for distribution to mirrors.
The idea seems simple and straightforward, yet I don't know if it is 
achievable.

The essential part is obtaining the full pathname of the file (won't 
bother with hardlinks at first, they aren't used here).
Could that be done with the FreeBSD's filesystem (vnode/vfs?) code? 
(which I'm not familiar with)

--
Deomid Ryabkov aka Rojer
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ: 8025844


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Question: tracking filesystem changes?

2005-02-02 Thread Marco Molteni
Deomid Ryabkov wrote:
[..]
E.g., if an unlink call is issued and an inode is within a particular 
filesystem (luckily, most of our data
already lives on or can be easily moved to a separate filesystem), a 
notice is sent to some userland daemon:
file /www/xxx/yyy.shtml is unlinked. Or opened for writing, or 
renamed... etc.
The file is then scheduled for distribution to mirrors.
The idea seems simple and straightforward, yet I don't know if it is 
achievable.

The essential part is obtaining the full pathname of the file (won't 
bother with hardlinks at first, they aren't used here).
Could that be done with the FreeBSD's filesystem (vnode/vfs?) code? 
(which I'm not familiar with)
yet another suggestion: ;-)
what about a shared library shim? That is, you use LD_PRELOAD and
intercept calls to the system calls you are interested in. This trick
is also called interposing.
say your executable calls open(). The shim intercepts open(), does its
logging/triggering/whatever, calls the real syscall and returns. It is
just a wrapper.
This is user-level, but works also with executables for which you don't
have source code, they just have to be dynamically linked against libc.
marco
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Idea about skeleton jail

2005-02-02 Thread Seán C . Farley
I missed the beginning of the thread, but I thought I would point out
the rough script (mknulljail.sh) I wrote awhile back that uses nullfs.
I also have a update script (fbinst.sh) for FreeBSD that handles jails.
http://www.farley.org/?page=software
mknulljail.sh is getting old and can be used for information, but I will
put out a new fbinst.sh soon.
Seán
--
[EMAIL PROTECTED]___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Devilator - performance monitoring for FreeBSD

2005-02-02 Thread Brooks Davis
On Wed, Feb 02, 2005 at 12:10:41PM +0100, Borja Marcos wrote:
 
   Hello,
 
   I'm writing a performance monitoring data collector for Orca 
 (www.orcaware.com) for FreeBSD 4- and 5-.
 
   I'm not sure about the correct values in the process description to 
 get a picture as accurate as possible of the cpu usage of different 
 processes. I've seen that top uses p_runtime (FreeBSD 5 and FreeBSD 4), 
 but I'm not sure if the value would be really useful.
 
   You can see a snapshot of the work in progress at:
 
   ftp://borja.sarenet.es/pub/freebsd4-devilator.pdf
   ftp://borja.sarenet.es/pub/freebsd5-devilator.pdf
 
   I'm intending to do something more complete than the classical 
 orcallator for Solaris. Namely, I am going to plot:
 
   - System processes resource usage (hopefully useful to spot 
 bottlenecks, and hopefully useful for the system developers)
 
   - Resource usage by a set of processes specified by the user. It 
   will have a configuration file with {process name, regular expression} 
 pairs. Processes whose name matches the regular expression will get 
 their own graph with %user/%system, etc cpu times, and probably I/O 
 statistics, memory statistics, so that you can know wether your (for 
 example) smtpd processes are getting more resources, or the memory hogs 
 are the httpd's, etc.
 
   - MBUF statistics
 
   - Network statistics (connections, TCP/UDP/ICMP statistics...)
 
   - Various caches and VM

If you're looking for some implementation examples for some of these,
take a look at ganglia's freebsd code.  It's largly based on extracting
things from other programs, but the work's been done so you don't have
to figure out what matters.

http://cvs.sourceforge.net/viewcvs.py/ganglia/monitor-core/srclib/libmetrics/freebsd/metrics.c?rev=1.4view=markup

-- Brooks

-- 
Any statement of the form X is the one, true Y is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4


pgpmzPfo5ojv2.pgp
Description: PGP signature


Re: Boot fails: Default F1? hangs. Trashed MBR? replaced FBSD mbr.

2005-02-02 Thread Evan Dower
sysutils/gpart is probably your friend here. It will
look at your disk and try to guess what the partition
table was. When I lost my MBR and partition table, it
was right. Lucky for me I had another disk I could
boot up on and use it from. I believe it will also
offer to write the partition table to disk. The only
thing to do after that is make sure the right
partitions are marked active so they show up as
bootable. Of course, for all know that could be your
entire problem. If fdisk and bsdlabel show everything
is in order, then be sure to check your boot/active flags.

=
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question: tracking filesystem changes?

2005-02-02 Thread Vlad GALU
On Wed, 02 Feb 2005 17:00:22 +0300, Deomid Ryabkov [EMAIL PROTECTED] wrote:
 Milan Obuch wrote:
 
 This could be a custom filesystem wrapper for UFS that would report
 name of the file/directory being changed.
 
 
 Couldn't you use kqueue system to monitor the directory-file?
 
 
 I could, if I hadn't near 10 millions of them.
 
 
 Hm. I meant monitoring the directory itself, as a file, then parsing
 the directory list to determine what has changed. But with 10M files,
 probably nothing would work...
 
 
 these are 10M of static documents, the daily change is minmal.
 the question is: where it is the appropriate place to collect those
 changes? the right way seems to implement a customs filesystem, but would
 it possible to obtain a full path at that level?
 
 Did you consider using fam (file alteration monitor) from ports?
 
 
 No, won't do the trick either.
 I cannot afford setting up watchdogs for every file or even every directory.
 And I'm essentially interested in every one of them (for mirroring
 purposes).
 A more general approach is needed.
 E.g., if an unlink call is issued and an inode is within a particular
 filesystem (luckily, most of our data
 already lives on or can be easily moved to a separate filesystem), a
 notice is sent to some userland daemon:
 file /www/xxx/yyy.shtml is unlinked. Or opened for writing, or
 renamed... etc.
 The file is then scheduled for distribution to mirrors.
 The idea seems simple and straightforward, yet I don't know if it is
 achievable.
 
 The essential part is obtaining the full pathname of the file (won't
 bother with hardlinks at first, they aren't used here).
 Could that be done with the FreeBSD's filesystem (vnode/vfs?) code?
 (which I'm not familiar with)
 
 --
 Deomid Ryabkov aka Rojer
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 ICQ: 8025844
 

   I once wrote a very small tool that used the kqueue API for
tracking descriptor changes. It basically read a list of files, open
them in read-only mode, and sent messages to syslog everytime one of
the descriptors changed status. In fact, if you read the kqueue
documentation (http://people.freebsd.org/~jlemon/papers/kqueue.pdf),
you'll pretty much find all you need.

 
 


-- 
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cahe-only DNS in jail

2005-02-02 Thread Gary Corcoran
Matt wrote:
I'm experiencing strange behaviour with Bind running inside a jail.  I'm 
running 5.2.1 current in the jail.  Thinks are working, but poorly.  
Lookups for my local machines work perfectly.  Some remote lookups work 
fine (yahoo, google, etc...).  However, many lookups time out, but will 
succeed after a few tries.  I'm doing all this from home (comcast cable 
internet).  Anyway, I'm not sure what to do.  Sniffing the network 
doesn't seem to help much.  Queries and requests are reaching the right 
hosts and ports.  Thanks for any help.
I don't know if this applies to you, but about yesterday my
PC's stopped working w/r/t DNS lookups.  Comcast changed the
IP addresses of their DNS servers.  For a while they had one new
one, but one of the old ones worked.  But yesterday the old IP
address stopped working completely, forcing me to update my
configuration files...
Gary
dnshost# uname -a
FreeBSD dnshost 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 
20:45:55 GMT 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

dnshost# named -v
named 8.3.7-REL Sun Jan  2 13:17:40 PST 2005
   [EMAIL PROTECTED]:/usr/obj/usr/src/usr.sbin/named
dnshost# nslookup www.washington.edu
Server:  localhost
Address:  127.0.0.1
*** localhost can't find www.washington.edu: Server failed
dnshost# !!
nslookup www.washington.edu
Server:  localhost
Address:  127.0.0.1
Non-authoritative answer:
Name:www.washington.edu
Addresses:  140.142.15.233, 140.142.3.7, 140.142.3.35, 140.142.15.163
dnshost# !!
nslookup www.usenix.org
Server:  localhost
Address:  127.0.0.1
Non-authoritative answer:
Name:db.usenix.org
Address:  131.106.3.253
Aliases:  www.usenix.org
options {
   directory /etc/namedb;
   pid-file /var/run/named/pid;
};
zone . {
   type hint;
   file tables/named.root;
};
zone 0.0.127.IN-ADDR.ARPA {
   type master;
   file tables/db.localhost;
};
zone hersant.dyndns.org {
   type master;
   file tables/db.hersant.dyndns.org;
};
zone 2.168.192.in-addr.arpa {
   type master;
   file tables/db.2.168.192.in-addr.arpa;
};
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Weird problem with midnight commander (Freebsd 5.3)

2005-02-02 Thread Aleksander Rozman - Andy
Hi !
I am having weird problem. I have installed FreeBSD 5.3 on several 
machines, and on two of those machines midnight commander has serious 
problems. When I run it, it needs a long time to start, and I mean long, 
about 5 minutes or so. Did anybody have a same problem? How did you fix it. 
Oh one of those machines was fresh install, and other was update...

Andy
**
*  Aleksander Rozman - Andy  * Fandoms:  E2:EA, SAABer, Trekkie, Earthie *
* [EMAIL PROTECTED] * Sentinel, BH 90210, True's Trooper,   *
*[EMAIL PROTECTED]   * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender*
* ICQ-UIC: 4911125   *
* PGP key available  *http://www.atechnet.dhs.org/~andy/ *
**
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/hosts lines starting with white space are ignored

2005-02-02 Thread Paul Armstrong
On Tue, Feb 01, 2005 at 05:21:19PM -0800, Romain Kang wrote:
  If a line in /etc/hosts starts with a space or tab, it's not read. I'm 
  not sure that's really a desirable behavior.  I'm quite sure it's not 
  the vehavior I expected.
 
 The format of /etc/hosts has been thus for more than 20 years over
 multiple platforms, so it's what everyone else expects.  Sorry.

I'm not so sure it is actually.
Both Solaris and Linux (sorry, but these are the only 2 other platforms
I've got access to), accept lines beginning with space or tab (or both).

Paul

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


duplicate packets on a vlan interface

2005-02-02 Thread Jeff Aitken
I'm seeing a very strange problem involving a freshly-installed 
5.3-RELEASE system using vlans.

The machine has a single active ethernet interface (em0) with a pair
of vlan pseudo-interfaces created on it:

em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
ether 00:09:6b:71:8c:38
media: Ethernet 100baseTX full-duplex
status: active
vlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet A1.B1.C1.50 netmask 0xffc0 broadcast A1.B1.C1.63
ether 00:09:6b:71:8c:38
media: Ethernet 100baseTX full-duplex
status: active
vlan: 20 parent interface: em0
vlan1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet A2.B2.C2.56 netmask 0xff00 broadcast A2.B2.C2.255
ether 00:09:6b:71:8c:38
media: Ethernet 100baseTX full-duplex
status: active
vlan: 842 parent interface: em0

From a remote machine, if I send a single packet to the IP address
configured on vlan0 (A1.B1.C1.50), I get a single packet in response. 
However, if I send a single packet the address configured on vlan1 
(A2.B2.C2.56), I get a total of 62 replies (the original plus 61
duplicates).  Running a tcpdump on the machine sending the ICMP
requests clearly shows that it's only sending a single request, yet
running tcpdump (tcpdump -p -i vlan1) on the receiving host shows
that it is receiving a total of 62 echo-requests.  

This does not appear to be unique to ICMP.  Sending TCP packets seems
to yield the same packet duplication on the destination box.  Oddly,
a traceroute does NOT generate the same result, so perhaps UDP packets
do not trigger whatever is going on.

A google search did not yield anything useful.  Any ideas?


--Jeff

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


KVM Linking

2005-02-02 Thread Ashwin Chandra
Hi, I am trying to create a kernel thread to monitor memory usage and context 
switches. I wrote a simple program in the kern dir, updated the files file in 
conf and i cant seem to link to the kvm libraries...whats the easy way to 
include the lib/libkvm files and directory without having to hack it through?

thanks
ash
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: KVM Linking

2005-02-02 Thread Dan Nelson
In the last episode (Feb 02), Ashwin Chandra said:
 Hi, I am trying to create a kernel thread to monitor memory usage and
 context switches. I wrote a simple program in the kern dir, updated
 the files file in conf and i cant seem to link to the kvm
 libraries...whats the easy way to include the lib/libkvm files and
 directory without having to hack it through?

Since you're already in the kernel, you can simply read the variables
directly.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cool script to update ports in cron..

2005-02-02 Thread Timour Ezeev
On Wed, 2 Feb 2005, Julio Capote wrote:
I guess the list doesnt like attachments, here's a link:
http://wonderland.hopto.org/~capotej/portsync.pl
-Julio
  I think you have a small problem with cvs release entry, i.e.  when you
  run your program you get
*default release=cvs tag==cvs tag=.
instead of
*default release=cvs tag=.
  Here is a small patch:
--- portsync.pl Wed Feb  2 23:28:36 2005
+++ portsync.pl.new Wed Feb  2 23:32:37 2005
@@ -20,7 +20,7 @@
 #Common configuration
 my $host = 'cvsup6.us.freebsd.org';  ### Host you want to use for 
cvsup
-my $release = '=cvs tag=.';   ### Release branch, i,e 
RELENG_5_3, etc
+my $release = '.';### Release branch, i,e 
RELENG_5_3, etc
 my $collection = 'ports-all';### Collection you want to 
fetch from the server
 my $portsdir= '/usr/ports';   ### Location of your ports 
tree
 my $logfile ='/var/log/portsync.log';### File for your logging
--
   Timour Ezeev
   Pivotal Dynamics Corp.
   [EMAIL PROTECTED]
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cool script to update ports in cron..

2005-02-02 Thread Timour Ezeev
On Wed, 2 Feb 2005, Julio Capote wrote:
I guess the list doesnt like attachments, here's a link:
http://wonderland.hopto.org/~capotej/portsync.pl
-Julio
  I think you have a small problem with cvs release entry, i.e.  when you
  run your program you get
*default release=cvs tag==cvs tag=.
instead of
*default release=cvs tag=.
  Here is a small patch:
--- portsync.pl Wed Feb  2 23:28:36 2005
+++ portsync.pl.new Wed Feb  2 23:32:37 2005
@@ -20,7 +20,7 @@
 #Common configuration
 my $host = 'cvsup6.us.freebsd.org';   	  	  ### Host you want to use for 
cvsup
-my $release = '=cvs tag=.';   ### Release branch, i,e 
RELENG_5_3, etc
+my $release = '.';### Release branch, i,e 
RELENG_5_3, etc
 my $collection = 'ports-all';		  ### Collection you want to 
fetch from the server
 my $portsdir= '/usr/ports';   ### Location of your ports 
tree
 my $logfile ='/var/log/portsync.log';	  ### File for your logging

--
   Timour Ezeev
   Pivotal Dynamics Corp.
   [EMAIL PROTECTED]
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cool script to update ports in cron..

2005-02-02 Thread Julio Capote
Thanks! Merged into release.

http://wonderland.hopto.org/~capotej/portsync.pl



On Thu, 2005-02-03 at 00:34 -0500, Timour Ezeev wrote:
 On Wed, 2 Feb 2005, Julio Capote wrote:
 
  I guess the list doesnt like attachments, here's a link:
  http://wonderland.hopto.org/~capotej/portsync.pl
  
  
  -Julio
 
I think you have a small problem with cvs release entry, i.e.  when you
run your program you get
 
 *default release=cvs tag==cvs tag=.
 
 instead of
 
 *default release=cvs tag=.
 
Here is a small patch:
 
 --- portsync.pl   Wed Feb  2 23:28:36 2005
 +++ portsync.pl.new   Wed Feb  2 23:32:37 2005
 @@ -20,7 +20,7 @@
 
   #Common configuration
   my $host = 'cvsup6.us.freebsd.org';   ### Host you want to 
 use for 
 cvsup
 -my $release = '=cvs tag=.';   ### Release branch, i,e 
 RELENG_5_3, etc
 +my $release = '.';### Release branch, i,e 
 RELENG_5_3, etc
   my $collection = 'ports-all'; ### Collection you 
 want to 
 fetch from the server
   my $portsdir= '/usr/ports';   ### Location of your 
 ports 
 tree
   my $logfile ='/var/log/portsync.log'; ### File for your 
 logging
 

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]