How DNA encodes behaviors

I've often wondered how DNA encodes hard-wired behaviors, such as a bird's intuition of how to weave a nest. Is it anything like how physical structures are encoded? Is it simply an encoding of neurons?