Re: Gnome green screen of death

2013-09-27 Thread Matthew Seaman
On 27/09/2013 04:34, leeoliveshackelf...@surewest.net wrote:
 Good afternoon, dear FreeBSD enthusiast.  I have installed X11 and Gnome on 
 my computer equipped with FreeBSD 9.1. The X11 
 and Gnome packages were taken from the d.v.d.-r.o.m. that 
 contained the operating system.  The computer is an H.P. Z220 
 with an Intel Xeon quad-core processor.  I do not want Gnome 
 to start automatically on bootup.  I wish to call it from the 
 command line on the local console.  When I have finished 
 working with Gnome, I expect the operating system to return me 
 to console session from which Gnome was called.  I have 
 started Gnome with the command exec gdm-session.  I do not 
 know if the exec keyword is necessary, but it worked.  When I 
 am finished working with Gnome, I click on the logoff (or 
 logout?) button.  The screen turns solid green with none of 
 icons, characters, image, or splash.  The computer does not 
 respond to the keyboard.  When I cut the power to the computer, 
 and then reboot, I receive a sequence of messages complaining 
 that ada0s3a, ada0s3d, and so on, are corrupt, and that I must 
 run fdsk.  What am I doing wrong here?  The following error messages, which 
 are shown only partially because they flash quickly on the screen, appear 
 before Gnome starts:  

There's a number of things:

  -- you seem to be logging into your X environment as root.
 This is not a particularly good idea.  Much better to
 create yourself a normal user account for that, and use
 su(1) or sudo(1) to take rootly powers as required.

  -- You don't say what sort of graphics card the system has.
 If you look at /var/log/Xorg.log.0 (or something similar to
 that) it will have that information amongst a lot of other
 stuff.

 The nature of the graphics card is important, because some
 models don't switch back to console mode from graphics mode
 very well.  It's a known bug, and unfortunately if you have
 one of those models the best advice at the moment is to run
 a display manager (xdm, kdm, slim) and always use a graphical
 login.

  -- The use of 'exec' in ~/.startx is correct, but not if you're
 typing that from the shell command prompt.  What exec does is
 *replace* the current process with the one you called.  That's
 fine if you're replacing the (very small) shell script that is
 ~/.startx, but not if you're replacing your login shell.

 The recommended way to start X from the command line is to set up
 a ~/.startx script (which could contain just your 'exec
 gdm-session' command, or quite a bit more.  Then type startx to
 (like it says on the tin...) start X.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Joystick for FreeBSD/Flightgear

2013-09-27 Thread Matthias Petermann


Hello,

I'm curious which of the currently available joysticks are supposed to  
work with FreeBSD. I'd like to use it for playing games/flightgear.


There was some discussion[1] which looks like joysticks should work in  
general, and I guess there are some models supported better than others.


Can anyone give a recommendation what to buy to be confident it works?

Kind regards,
Matthias



[1] http://forums.freebsd.org/showthread.php?t=18454
--
Matthias Petermann matth...@petermann-it.de
Ihr Partner für anspruchsvolle IT-Lösungen
www.petermann-it.de - lösungsorientiert, innovativ und erfolgreich

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Is it possible to suspend to disk with geli+Root on ZFS installation

2013-09-27 Thread yudi v
Hi all,

Is it possible to suspend to disk (hibernate) when using geli for full disk
encryption. My set-up is listed below. So I am going to have an encrypted
container and ZFS on top. There are two options for the swap with this
set-up, either use a swap file on the ZFS pool or use a separate partition
for swap and encrypt that. What I want to know is will either of this work
with suspend to disk.

Reading geli(8) http://man.freebsd.org/geli/8 man page does not say
anything about suspending to disk. Geli itself has suspend and resume
commands but looks like they cannot be used on the file system where
geliutility is stored (so the root pool cannot be suspended?)

And the onetime option does not support geli suspend.

Thank you.
Yudi

PS. I haven't received any response to the email below, if someone would
still like to answer some of the questions at the end, that would be
wonderful.


-- Forwarded message --
From: yudi v yudi@gmail.com
Date: Fri, Sep 20, 2013 at 7:09 PM
Subject: geli+Root on ZFS installation
To: freebsd-questions@freebsd.org


Hi,

I managed to install with geli+root on ZFS setup but have a few
questions.  Most of the instructions just list commands but offer very
little explanation.
I adapted the instructions in
https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE  to suit my needs.

Here's the process I used for the test on a VM:

2 GB RAM
two HDDs 8 GB each mirrored - three partitions

for boot code 128 KB
for /boot 2 GB
for the rest of the system and encrypted

no key file for encrypted partitions, only passphrase
using 9.1-RELEASE
there will be no swap or handling of 4k drives, just to keep it as simple
as possible.

*Create the basic three partitions:*


gpart destroy -F da0
gpart destroy -F da1
gpart create -s gpt da0
gpart create -s gpt da1
gpart add -s 128 -t freebsd-boot da0
gpart add -s 128 -t freebsd-boot da1
gpart add -s 2G -t freebsd-zfs da0
gpart add -s 2G -t freebsd-zfs da1
gpart add -t freebsd-zfs da0
gpart add -t freebsd-zfs da1

*Write boot code to both disks:*

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1

*Load necessary modules:*

kldload zfs
kldload geom_eli
*
Encrypt the disks with only a passphrase:*

geli init -b -s 4096 /dev/da0p3
geli init -b -s 4096 /dev/da1p3

geli attach /dev/da0p3
geli attach /dev/da1p3

*Creating ZFS datasets:*

zpool create bootdir mirror /dev/da0p2 /dev/da1p2
zpool set bootfs=bootdir bootdir

zpool create -R /mnt -O canmount=off tank mirror /dev/da0p3.eli
/dev/da1p3.eli
zfs create -o mountpoint=/tank/ROOT
zfs set mountpoint=/mnt/bootdirbootdir
zfs mount bootdir

*Then exit out of the shell and go back to bsdinstall. Install as normal
and then get back to the shell after bsdinstall finishes ( do not reboot
yet).*

Once in the newly installed system:

mount -t devfs devfs /dev   ( to use ZFS commands in the new environment)

*Add the necessary variables/settings:*

echo ‘zfs_enable=”YES”‘  /etc/rc.conf
echo ‘vfs.root.mountfrom=”zfs:tank/ROOT”‘   /boot/loader.conf
echo ‘zfs_load=”YES”‘  /boot/loader.conf
echo ‘geom_eli_load=”YES”‘  /boot/loader.conf

*Then create a zpool cache file:*

 zpool set cachefile=/boot/zfs/zpool.cache tank.

*Then move the boot folder to the second partition under the bootdir
dataset:*

mv boot bootdir/
*
Then set the final mount points:*

zfs set mountpoint=legacy tank
zfs set mountpoint=/bootdir bootdir

*then reboot.*
It should boot fine into the new system.

-  My questions:  -

*1.*   Almost all the guides  I came across, do not install to the root
dataset, they only seem to use it to derive/mount other
datasets/filesystems.
One of the reasons is to user boot environments, what are the other
possible reasons for doing this?



*2*.   Is it necessary to create a symbolic link to the /boot dir? Again
one of the howtos on the web had this step (
https://www.dan.me.uk/blog/2012/05/06/full-disk-encryption-with-zfs-root-for-freebsd-9-x/
).

ln -fs bootdir/boot

*3*.   This below option is where I had most trouble. This definitely needs
to be present when using geli+ZFS, if it's only ZFS, then I think the
bootfs flag suffices. Can someone with more knowledge of this please shed
some light on when this entry is needed.

vfs.root.mountfrom=”zfs:tank/ROOT”

*4.* In the wiki link above, what is the purpose of:

# zfs set mountpoint=/  zroot/ROOT
# zfs set mountpoint=/zroot zroot

I cannot understand the logic behind the second command.
Does that mean zroot  will display under / (root of the filesystem)?  and
Why?

looking at the rest of the commands:

# zfs set mountpoint=/tmp zroot/tmp
 # zfs set mountpoint=/usr zroot/usr
 # zfs set mountpoint=/var zroot/var

so if ROOT is set to /
then tmp, usr and var all appear under ROOT, is that right?


*5.* There seems to be lot of variation on how the system directories are
mounted under ZFS. In the above wiki 

tcpdump behavior with netgraph

2013-09-27 Thread Riaan Kruger
I am trying to troubleshoot my netgraph setup.
I have a custom node connected to ng_ether's orphan and upper hooks.
This node inserts a special ethernet tag into certain UDP broadcast packets
going out and strip it coming back in.

With tcpdump I see two entries for each packet sent, one without the
special ethernet tag and one with it.
1. Is it correct that tcpdump sees the packet twice, and why? According to
the following diagram it does not make sense that tcpdump should see it
twice: http://people.freebsd.org/~julian/layer2-current.pdf


If the system has been running a while some of the UDP broadcast packets
are not sent and I only see (with tcpdump) the packet without the special
ethernet tag.  2. Is this an indication that the packet gets lost in the
netgraph chain?


Last question:
3. How can I better/debug troubleshoot what is going on in whole
netgraphsubsystem, not just mode
netgraph node that I inserted in the chain.


Thanks
PS. Questions numbered for your convenience :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


General questions regarding FreeBSD 10

2013-09-27 Thread Nikolas Britton
General questions regarding FreeBSD 10:

1. Did virtualization containers (VPS) make it into FreeBSD 10? The
documentation I’ve read implies that you can have nested containers, with
little to no performance penalty, is this correct? How is networking
handled inside these containers?

2. I'm assuming jails still exist in FreeBSD (I haven’t used BSD in a long
time), how do they relate, or fit in, with VPS and Bhyve offerings? Is Xen
Dom0 or KVM available on FreeBSD?

3. Can Bhyve be used with processors that don't support Extended Page
Tables? For example, Xeon 5400 series processors?

4. How well does FreeBSD 10 run as a VMware vsphere , KVM, and/or Xen guest?

5: For Jails, VPS, and Bhyve, what is the footprint (i.e. memory overhead)
for each implementation?

6. How stable is FreeBSD's ZFS implementation, relative to Solaris? What
zpool version is in FreeBSD 10? Is LZ4 the default compression mode?

7. Is Clang and the build system setup to automatically target cpu
instruction set? i.e. cc -target-cpu corei7-avx? Any performance
improvements of targeted binaries?

8. Has ports management gotten any better, specifically upgrading ports?
Can applications be self contained, like on the Mac, yet? Any work on
rollback with ZFS?

9. I recall device support being a large hurtle for me in the past. How far
behind is driver development relative to Linux, for server equipment? Has
there been any community interest in porting FreeBSD (world) to Linux
(kernel)?

10. How is the Java ecosystem on FreeBSD? Is LLVM specific to applications?
I make the assumption that the VM in LLVM is referring to something like a
JVM, for code abstraction.

I haven’t used FreeBSD in ages. However, VPS, with ZFS, has me really
excited; I don’t enjoy Solaris, and Enterprise Linux is still stuck in
2009, with kernel 2.6.32. I can’t find any modern linux distributions that
are as reliable as I remember FreeBSD was. It’s really sad. Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: General questions regarding FreeBSD 10

2013-09-27 Thread Teske, Devin

On Sep 27, 2013, at 10:47 AM, Nikolas Britton wrote:

 General questions regarding FreeBSD 10:
 
 1. Did virtualization containers (VPS) make it into FreeBSD 10? The
 documentation I’ve read implies that you can have nested containers, with
 little to no performance penalty, is this correct? How is networking
 handled inside these containers?
 

I don't think they made it into 10. I think they are still in the projects/ 
tree...

Last 2 posts on the topic that I've seen (Sep. 23, 2013):
http://lists.freebsd.org/pipermail/freebsd-hackers/2013-September/043429.html
http://lists.freebsd.org/pipermail/freebsd-hackers/2013-September/043442.html



 2. I'm assuming jails still exist in FreeBSD (I haven’t used BSD in a long
 time), how do they relate, or fit in, with VPS and Bhyve offerings?
 

Yes. Changed slightly -- you configure jails in /etc/jail.conf now.

Jails are enhanced by VPS and Bhyve offerings (which, the best of my knowledge,
require jails).

[skipping questions I can't answer]

 6. How stable is FreeBSD's ZFS implementation, relative to Solaris? What
 zpool version is in FreeBSD 10? Is LZ4 the default compression mode?
 

At $work we're actively deploying ZFS into production. It's very stable from
our testing over several years. Mileage seems to depend on configuration
complexity, but overall is extremely stable.

The default zpool version is 28, but if you do a zpool upgrade ... you'll then
jump to the new 5000 version introduces zfs feature flags.



 8. Has ports management gotten any better, specifically upgrading ports?
 Can applications be self contained, like on the Mac, yet? Any work on
 rollback with ZFS?
 

For better ports management, you could look into poudriere. There's a tutorial
on bsdnow.tv

The idea is that you'll use poudriere to intelligently manage the ports you want
to roll binary packages. Then on 10 with the new `pkg' framework (formerly known
as PkgNg) those binary packages are intelligently applied.

As for self-contained packages... I believe you want what is known as PBIs.
However, I think only PC-BSD offers PBIs -- I don't think they are offered in
FreeBSD 10 by default (maybe there's a way though).

I assume what you mean by rollback with ZFS is... boot loader integration 
with
BEs so you can boot to a previous snapshot.

Look for that in 10.1.




 9. I recall device support being a large hurtle for me in the past. How far
 behind is driver development relative to Linux, for server equipment? Has
 there been any community interest in porting FreeBSD (world) to Linux
 (kernel)?
 

Driver support is improving. There's AMD KMS and many more new drivers.

Knowing what kind of hardware you use would help answer the question better.
We've been very happy with LSI MegaRAID/SAS support, Broadcom 10G iSCSI
support, QLogic 8G FC support, and many many more.

As for FreeBSD-world with Linux-kernel... that sounds like the exact opposite
of the Debian kFreeBSD project (FreeBSD-kernel, Linux-world).

I don't suppose there's much demand in that. People that want such a thing
seem to be quite happy with ArchLinux -- which uses a BSD-style init framework.

There's also ArchBSD and ArchHurd.




 10. How is the Java ecosystem on FreeBSD?
 

Well, daiblo-jdk is dead, long live OpenJDK?
Seems to be the motions around here at $work.





 I haven’t used FreeBSD in ages. However, VPS, with ZFS, has me really
 excited;

Even more exciting, throw in VIMAGE, Geom Multipath, NETGRAPH, and 
sysutils/zxfer.

The possibilities are limitless as you bolt on more-and-more ^_^



 I don’t enjoy Solaris, and Enterprise Linux is still stuck in
 2009, with kernel 2.6.32. I can’t find any modern linux distributions that
 are as reliable as I remember FreeBSD was. It’s really sad. Thanks!

Come on back to FreeBSD. ;) you're always welcome!

We won't discuss why you left in the first place ;)
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread Laurent SALIN
Hello,
I wondering how i can send queries to a dns resolver listening on a
different port than the normaly 53 tcp/udp ?

The situation:
I've got a vps who running NSD as a autoritative nameserver, listening
on tcp/udp 53 and unbound as personnal resolver, listening on a
different tcp/udp port. It work very well on his own or with my OpenBSD
gateway at home as DNS cache.

Recently i've got a new FreeBSD VPS and I want to use the first VPS as
DNS nameserver for the second VPS but FreeBSD is unable to send queries
to nameserver on a different port as the normal one (tcp/udp 53).

I've got a bad solution, use unbound on the second VPS and maybe tell
him to ask the 1rst VPS on the unusual tcp/udp port, but I wonder myself
if is it possible with Packet Filter to change the destination port of
the queries forwarded to my 1rst VPS from tcp/udp 53 to tcp/udp 5353 for
exemple ?

Or maybe anybody got a other solution ?

I hope you'll understand me :-/

Laurent SALIN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: General questions regarding FreeBSD 10

2013-09-27 Thread Julian H. Stacey
Hi, Reference:
 From: Nikolas Britton nikolas.brit...@gmail.com 
 Date: Fri, 27 Sep 2013 12:47:08 -0500 

Nikolas Britton wrote:
 General questions regarding FreeBSD 10:
 
 1. Did virtualization containers (VPS) make it into FreeBSD 10? The
 documentation I’ve read implies that you can have nested containers, with
 little to no performance penalty, is this correct? How is networking
 handled inside these containers?
 
 2. I'm assuming jails still exist in FreeBSD (I haven’t used BSD in a long
 time),


Then wait for the Release Announcement !!! Yuo'll read it when we do too.

 how do they relate, or fit in, with VPS and Bhyve offerings? Is Xen
 Dom0 or KVM available on FreeBSD?
 
 3. Can Bhyve be used with processors that don't support Extended Page
 Tables? For example, Xeon 5400 series processors?
 
 4. How well does FreeBSD 10 run as a VMware vsphere , KVM, and/or Xen guest?
 
 5: For Jails, VPS, and Bhyve, what is the footprint (i.e. memory overhead)
 for each implementation?
 
 6. How stable is FreeBSD's ZFS implementation, relative to Solaris? What
 zpool version is in FreeBSD 10? Is LZ4 the default compression mode?
 
 7. Is Clang and the build system setup to automatically target cpu
 instruction set? i.e. cc -target-cpu corei7-avx? Any performance
 improvements of targeted binaries?
 
 8. Has ports management gotten any better, specifically upgrading ports?
 Can applications be self contained, like on the Mac, yet? Any work on
 rollback with ZFS?
 
 9. I recall device support being a large hurtle for me in the past. How far
 behind is driver development relative to Linux, for server equipment? Has
 there been any community interest in porting FreeBSD (world) to Linux
 (kernel)?
 
 10. How is the Java ecosystem on FreeBSD? Is LLVM specific to applications?
 I make the assumption that the VM in LLVM is referring to something like a
 JVM, for code abstraction.
 
 I haven’t used FreeBSD in ages. 

Then you can afford to wait for the Release Announcement - like the
rest of us - Or if you really wanted to know the answer to all these
question, you wouldnt ask the questions@ list that was created for
beginners quetions, you would go search the archives of the developer
lists,  subscribe some. No subscribing a list doesnt mean you have
to run it, just that you keep yourself informed  dont need to ask
quaestions in advance of reality to the wrong list.

 However, VPS, with ZFS, has me really
 excited; I don’t enjoy Solaris, and Enterprise Linux is still stuck in
 2009, with kernel 2.6.32. I can’t find any modern linux distributions that
 are as reliable as I remember FreeBSD was. It’s really sad. Thanks!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 


Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
 Reply below not above, like a play script.  Indent old text with  .
 Send plain text.  No quoted-printable, HTML, base64, multipart/alternative.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread Mark Felder
On Fri, Sep 27, 2013, at 13:20, Laurent SALIN wrote:
 Hello,
 I wondering how i can send queries to a dns resolver listening on a
 different port than the normaly 53 tcp/udp ?
 
 The situation:
 I've got a vps who running NSD as a autoritative nameserver, listening
 on tcp/udp 53 and unbound as personnal resolver, listening on a
 different tcp/udp port. It work very well on his own or with my OpenBSD
 gateway at home as DNS cache.
 

Is there any way to use multiple IPs?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread Terje Elde
On 27. sep. 2013, at 20:20, Laurent SALIN salin.laur...@laposte.net wrote:

 I've got a bad solution, use unbound on the second VPS and maybe tell
 him to ask the 1rst VPS on the unusual tcp/udp port

Why is that a bad solution?

You'd cache locally, which is often considered a good thing?

Granted, it's a bit of a weird setup, but still. 

Terje
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread loran42o

Is there any way to use multiple IPs?


hi,
no I can't. Each VPS got only one IPv4 and I'm really not aware yet 
about how IPv6 works.


Laurent SALIN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread loran42o

Le 27/09/2013 22:28, Terje Elde a écrit :

Why is that a bad solution?

You'd cache locally, which is often considered a good thing?

Granted, it's a bit of a weird setup, but still.


I hope it could be esay as put the ip of my resolver VPS in the 
/etc/resolv.conf and let PF translate the destination port.


Does anybody know why in FreeBSD we can't set a alternative port in the 
/etc/resolv.conf as in the OpenBSD one ? (for my knowledge :-)


Laurent SALIN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread jb
Laurent SALIN salin.laurent at laposte.net writes:

 
 Hello,
 I wondering how i can send queries to a dns resolver listening on a
 different port than the normaly 53 tcp/udp ?
 
 The situation:
 I've got a vps who running NSD as a autoritative nameserver, listening
 on tcp/udp 53 and unbound as personnal resolver, listening on a
 different tcp/udp port. It work very well on his own or with my OpenBSD
 gateway at home as DNS cache.
 
 Recently i've got a new FreeBSD VPS and I want to use the first VPS as
 DNS nameserver for the second VPS but FreeBSD is unable to send queries
 to nameserver on a different port as the normal one (tcp/udp 53).
 
 I've got a bad solution, use unbound on the second VPS and maybe tell
 him to ask the 1rst VPS on the unusual tcp/udp port, but I wonder myself
 if is it possible with Packet Filter to change the destination port of
 the queries forwarded to my 1rst VPS from tcp/udp 53 to tcp/udp 5353 for
 exemple ?
 
 Or maybe anybody got a other solution ?
 
 I hope you'll understand me :-/
 
 Laurent SALIN

Well, I hope I understand you.
You use DNS Proxy server, like BIND or DNSMASQ.

With BIND you have options in /etc/named.conf:
http://www.zytrax.com/books/dns/ch7/queries.html
forward
forwarders

I do not know how DNSMASQ configures it, if at all - you would have to
download original package with full documentation.

jb




 




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread Frank Leonhardt

On 27/09/2013 19:20, Laurent SALIN wrote:

Hello,
I wondering how i can send queries to a dns resolver listening on a
different port than the normaly 53 tcp/udp ?

The situation:
I've got a vps who running NSD as a autoritative nameserver, listening
on tcp/udp 53 and unbound as personnal resolver, listening on a
different tcp/udp port. It work very well on his own or with my OpenBSD
gateway at home as DNS cache.

Recently i've got a new FreeBSD VPS and I want to use the first VPS as
DNS nameserver for the second VPS but FreeBSD is unable to send queries
to nameserver on a different port as the normal one (tcp/udp 53).

I've got a bad solution, use unbound on the second VPS and maybe tell
him to ask the 1rst VPS on the unusual tcp/udp port, but I wonder myself
if is it possible with Packet Filter to change the destination port of
the queries forwarded to my 1rst VPS from tcp/udp 53 to tcp/udp 5353 for
exemple ?

Or maybe anybody got a other solution ?

I hope you'll understand me :-/

Laurent SALIN



If I understand the way it works correctly, the resolver pulls a list of 
the NS and hard-sets the port number for each to 53 (via a manifest 
constant) . See libc/resolv/res_init.c. All you need to do(!) is change 
this to a value of your choice and recompile libc (and anything that 
links to it statically) and it should be sorted. Or find an easier 
work-around.  I don't see any reason why the resolver library can't be 
modified to pick up a range of port numbers from the config (as other 
systems have), but AFAIK it can't.


The resolver isn't part of the kernel - it's the application doing the 
lookup, not FreeBSD (except in libc being part of the base system). Oh 
you know what I mean! Each application makes its own lookup.


I could be spectacularly out-of-date with this.

Regards, Frank.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread Terje Elde
On 28. sep. 2013, at 00:03, Frank Leonhardt fra...@fjl.co.uk wrote:

 If I understand the way it works correctly, the resolver pulls a list of the 
 NS and hard-sets the port number for each to 53 (via a manifest constant) . 
 See libc/resolv/res_init.c. All you need to do(!) is change this to a value 
 of your choice and recompile libc

Sorry, but this is startin to look a lot like a complicated solution to a 
problem that isn't really there...

Why not just point from resolv.conf to localhost, run a caching and/or 
recursive dns-server there, and point it whereever?

As far as I can tell, that'd solve everything, add caching, and let it all be 
controlled from the config of the DNS-server?

Terje

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread Frank Leonhardt

On 27/09/2013 23:08, Terje Elde wrote:

On 28. sep. 2013, at 00:03, Frank Leonhardt fra...@fjl.co.uk wrote:


If I understand the way it works correctly, the resolver pulls a list of the NS 
and hard-sets the port number for each to 53 (via a manifest constant) . See 
libc/resolv/res_init.c. All you need to do(!) is change this to a value of your 
choice and recompile libc

Sorry, but this is startin to look a lot like a complicated solution to a 
problem that isn't really there...

It was more of an explanation as to /why/ it's not easy to do what asked 
in the original reasonable-sounding question.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to ask a DNS resolver listening on a different port than the tcp/udp 53

2013-09-27 Thread Michael Sierchio
On Fri, Sep 27, 2013 at 4:11 PM, Frank Leonhardt fra...@fjl.co.uk wrote:
 On 27/09/2013 23:08, Terje Elde wrote:

 On 28. sep. 2013, at 00:03, Frank Leonhardt fra...@fjl.co.uk wrote:

 If I understand the way it works correctly, the resolver pulls a list of
 the NS and hard-sets the port number for each to 53 (via a manifest
 constant) . See libc/resolv/res_init.c. All you need to do(!) is change this
 to a value of your choice and recompile libc

 Sorry, but this is startin to look a lot like a complicated solution to a
 problem that isn't really there...

 It was more of an explanation as to /why/ it's not easy to do what asked in
 the original reasonable-sounding question.

Beg to differ.  The question isn't reasonable.  There's no point in
having a dns recursive resolver listening on a port other than the one
that clients will contact it on.

Far better to have the authoritative server listen on 127.53.0.1 and
use the routable address for the cache, which can forward requests for
the authoritative server when appropriate.

- M
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Freebsd-current kernel freezes

2013-09-27 Thread Juris Kaminskis
Hi,

Yesterday i made:
Svn update
Make buildworld
Make buildkernel
Make installkernel

But when I reboot kernel freezes with last line pci1

I can only boot my previous freebsd9.2 kernel, already tried several times, so 
can you help me how to troubleshoot?
Tks
Juris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org